Rename Tab dialog - populate original name

Fixes #258
This commit is contained in:
Sean Kaim
2017-01-24 17:36:41 -05:00
parent e0fd81e938
commit 48d53cecce

View File

@@ -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("&", "&&");
}