소스 검색

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)
   {