Browse Source

Postponed automatic operation start was broken by 1dc5bc03

Source commit: 0a8cbed9ed16a89fcc1fc3fa42f640c3daaa7410
Martin Prikryl 4 years ago
parent
commit
80b73e42b8
1 changed files with 4 additions and 1 deletions
  1. 4 1
      source/windows/WinInterface.cpp

+ 4 - 1
source/windows/WinInterface.cpp

@@ -411,7 +411,10 @@ void __fastcall TMessageTimeout::DoTimer(TObject * /*Sender*/)
     // Needed particularly for "keep up to date" dialog, which does not close on the button click
     Enabled = false;
     TModalResult PrevModalResult = FButton->ModalResult;
-    FButton->ModalResult = FAnswer;
+    if (FAnswer != 0)
+    {
+      FButton->ModalResult = FAnswer;
+    }
     try
     {
       FButton->Click();