Browse Source

When renaming an ad-hoc site, use a generated friendly name as a start

Source commit: acd0603ad6696a27c0cb16f1084c0cafeec6d124
Martin Prikryl 6 years ago
parent
commit
f80cd39c61
1 changed files with 1 additions and 1 deletions
  1. 1 1
      source/forms/CustomScpExplorer.cpp

+ 1 - 1
source/forms/CustomScpExplorer.cpp

@@ -4790,7 +4790,7 @@ void __fastcall TCustomScpExplorerForm::DuplicateSession()
 //---------------------------------------------------------------------------
 void __fastcall TCustomScpExplorerForm::RenameSession()
 {
-  UnicodeString Name = Terminal->SessionData->Name;
+  UnicodeString Name = Terminal->SessionData->SessionName;
   if (InputDialog(LoadStr(RENAME_SESSION_TITLE), LoadStr(RENAME_SESSION_PROMPT), Name, HELP_SESSION_RENAME))
   {
     // Checks for a slash only, so it's not that big deal that we do the check after submitting the dialog only.