Source commit: 98fedfba1d39dacb384045f15d2dbf4e8aa3a09f
@@ -719,7 +719,11 @@ void __fastcall TTerminalManager::UpdateAppTitle()
}
else if (ActiveTerminal && (ScpExplorer != NULL))
{
- AddToList(NewTitle, ScpExplorer->PathForCaption(), L" - ");
+ UnicodeString Path = ScpExplorer->PathForCaption();
+ if (!Path.IsEmpty())
+ {
+ NewTitle = Path + L" - " + NewTitle;
+ }
// Not updating MainForm here, as for all other possible main forms, this code is actually not what we want.