Duplicating a node now places it under the node that it was copied from, rather than the bottom of the list. (this was the previous behavior)

This commit is contained in:
David Sparer
2016-09-14 08:36:58 -06:00
parent 2ba3e95379
commit 3a2f35f697

View File

@@ -527,9 +527,10 @@ namespace mRemoteNG.UI.Window
private void cMenTreeDuplicate_Click(object sender, EventArgs e)
{
SelectedNode.Clone();
var newNode = SelectedNode.Clone();
newNode.Parent.SetChildBelow(newNode, SelectedNode);
Runtime.SaveConnectionsBG();
olvConnections.RebuildAll(true);
olvConnections.RefreshObject(SelectedNode);
}
private void cMenTreeRename_Click(object sender, EventArgs e)