Merge pull request #1057 from Toomix/patch-1

Fixing NullReferenceException when renaming node
This commit is contained in:
David Sparer
2018-08-01 06:45:42 -05:00
committed by GitHub

View File

@@ -295,8 +295,11 @@ namespace mRemoteNG.UI.Controls
public void RenameSelectedNode()
{
_allowEdit = true;
SelectedItem.BeginEdit();
if (SelectedItem != null)
{
_allowEdit = true;
SelectedItem.BeginEdit();
}
}
public void DeleteSelectedNode()
@@ -440,4 +443,4 @@ namespace mRemoteNG.UI.Controls
}
#endregion
}
}
}