Browse Source

Reverting change by ab932ec6c that moved path in window title to the end

Source commit: 98fedfba1d39dacb384045f15d2dbf4e8aa3a09f
Martin Prikryl 7 years ago
parent
commit
78f2055612
1 changed files with 5 additions and 1 deletions
  1. 5 1
      source/windows/TerminalManager.cpp

+ 5 - 1
source/windows/TerminalManager.cpp

@@ -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.