浏览代码

Issue 2248 – Failure when starting with colored session

https://winscp.net/tracker/2248

Source commit: e8a57a6de0b2141da70b14746f0e7f791cce7a03
Martin Prikryl 1 年之前
父节点
当前提交
5f1d18ee93
共有 1 个文件被更改,包括 2 次插入1 次删除
  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();
   }