浏览代码

Bug fix: Failure when trying to switch session tabs while previous switch did not complete yet

Source commit: 6c0ba273dabd86e9e8c5fee52de4aa13f6e55164
Martin Prikryl 3 年之前
父节点
当前提交
81ce67f047
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      source/forms/CustomScpExplorer.cpp

+ 1 - 0
source/forms/CustomScpExplorer.cpp

@@ -7169,6 +7169,7 @@ bool __fastcall TCustomScpExplorerForm::SessionTabSwitched()
 //---------------------------------------------------------------------------
 //---------------------------------------------------------------------------
 void __fastcall TCustomScpExplorerForm::SessionsPageControlChange(TObject * /*Sender*/)
 void __fastcall TCustomScpExplorerForm::SessionsPageControlChange(TObject * /*Sender*/)
 {
 {
+  TWindowLock Lock(this);
   SessionTabSwitched();
   SessionTabSwitched();
 }
 }
 //---------------------------------------------------------------------------
 //---------------------------------------------------------------------------