From 48d53cecce158a0fd837a8bdfbea522205bc8abb Mon Sep 17 00:00:00 2001 From: Sean Kaim Date: Tue, 24 Jan 2017 17:36:41 -0500 Subject: [PATCH] Rename Tab dialog - populate original name Fixes #258 --- mRemoteV1/UI/Window/ConnectionWindow.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mRemoteV1/UI/Window/ConnectionWindow.cs b/mRemoteV1/UI/Window/ConnectionWindow.cs index c4f7ca62a..c4e04f289 100644 --- a/mRemoteV1/UI/Window/ConnectionWindow.cs +++ b/mRemoteV1/UI/Window/ConnectionWindow.cs @@ -678,7 +678,7 @@ namespace mRemoteNG.UI.Window { try { - var newTitle = ""; + var newTitle = TabController.SelectedTab.Title; if (input.InputBox(Language.strNewTitle, Language.strNewTitle + ":", ref newTitle) == DialogResult.OK && !string.IsNullOrEmpty(newTitle)) TabController.SelectedTab.Title = newTitle.Replace("&", "&&"); }