Browse Source

Issue 2248 – Failure when starting with colored session

https://winscp.net/tracker/2248

Source commit: e8a57a6de0b2141da70b14746f0e7f791cce7a03
Martin Prikryl 1 year ago
parent
commit
5f1d18ee93
1 changed files with 2 additions and 1 deletions
  1. 2 1
      source/forms/CustomScpExplorer.cpp

+ 2 - 1
source/forms/CustomScpExplorer.cpp

@@ -1219,7 +1219,8 @@ void __fastcall TCustomScpExplorerForm::ConfigurationChanged()
     FileColorsChanged();
   }
 
-  if (GetNewTabTab()->CaptionTruncation != GetNewTabTabCaptionTruncation())
+  if ((GetNewTabTab()->CaptionTruncation != GetNewTabTabCaptionTruncation()) &&
+      (FSessionColors != NULL))
   {
     SessionListChanged();
   }