浏览代码

Session color was not updated when switching to local-local tab

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

+ 2 - 2
source/forms/CustomScpExplorer.cpp

@@ -596,9 +596,9 @@ void __fastcall TCustomScpExplorerForm::SessionChanging()
 //---------------------------------------------------------------------------
 void __fastcall TCustomScpExplorerForm::SessionChanged(bool Replaced)
 {
-  if (Terminal != NULL)
+  if (ManagedSession != NULL)
   {
-    UpdateSessionColor((TColor)Terminal->StateData->Color);
+    UpdateSessionColor(static_cast<TColor>(ManagedSession->StateData->Color));
   }
   if (!TTerminalManager::Instance()->Updating)
   {