浏览代码

Bug fix: WinSCP instance without main window (opened from command-line) could incorrectly accept session opened from another instance

Source commit: 721fd690a4abf695ccf16bab48b8e88ed34936a0
Martin Prikryl 7 年之前
父节点
当前提交
27f31a88ed
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      source/forms/CustomScpExplorer.cpp

+ 1 - 1
source/forms/CustomScpExplorer.cpp

@@ -472,7 +472,7 @@ bool __fastcall TCustomScpExplorerForm::CanConsole()
 //---------------------------------------------------------------------------
 //---------------------------------------------------------------------------
 bool __fastcall TCustomScpExplorerForm::CanCommandLineFromAnotherInstance()
 bool __fastcall TCustomScpExplorerForm::CanCommandLineFromAnotherInstance()
 {
 {
-  bool Result = !NonVisualDataModule->Busy;
+  bool Result = Visible && !NonVisualDataModule->Busy;
   return Result;
   return Result;
 }
 }
 //---------------------------------------------------------------------------
 //---------------------------------------------------------------------------