浏览代码

Bug fix: Failure when New Tab is clicked while another session is still being loaded

Source commit: 350c582bab706c0d11031f99bbc55be041a3b1d2
Martin Prikryl 2 年之前
父节点
当前提交
75044ab5c0
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      source/forms/CustomScpExplorer.cpp

+ 1 - 0
source/forms/CustomScpExplorer.cpp

@@ -576,6 +576,7 @@ void __fastcall TCustomScpExplorerForm::SetManagedSession(TManagedTerminal * val
 {
 {
   if (FManagedSession != value)
   if (FManagedSession != value)
   {
   {
+    TWindowLock Lock(this);
     SessionChanging();
     SessionChanging();
     DoSetManagedSession(value, false);
     DoSetManagedSession(value, false);
   }
   }