瀏覽代碼

Bug 1379: Failure when Progress window closes (transfer finishes) while "Once done" drop down menu is opened

https://winscp.net/tracker/1379

Source commit: 582b915374912451bc4834fd2d70fe2370fb9b42
Martin Prikryl 9 年之前
父節點
當前提交
430de1c6c9
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      source/forms/Progress.cpp

+ 5 - 1
source/forms/Progress.cpp

@@ -618,7 +618,11 @@ void __fastcall TProgressForm::OnceDoneOperationCombo2Select(TObject * /*Sender*
 //---------------------------------------------------------------------------
 void __fastcall TProgressForm::OnceDoneOperationCombo2CloseUp(TObject * /*Sender*/)
 {
-  ResetFocus();
+  // Do not try to focus anything, if we are closing because the window itself is closing
+  if (Showing)
+  {
+    ResetFocus();
+  }
 }
 //---------------------------------------------------------------------------
 void __fastcall TProgressForm::Dispatch(void * AMessage)