From 3a2f35f697f3579cfee183c9b6377c540c9d2d1b Mon Sep 17 00:00:00 2001 From: David Sparer Date: Wed, 14 Sep 2016 08:36:58 -0600 Subject: [PATCH] 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) --- mRemoteV1/UI/Window/ConnectionTreeWindow.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mRemoteV1/UI/Window/ConnectionTreeWindow.cs b/mRemoteV1/UI/Window/ConnectionTreeWindow.cs index 6ab934c0..a6a08b21 100644 --- a/mRemoteV1/UI/Window/ConnectionTreeWindow.cs +++ b/mRemoteV1/UI/Window/ConnectionTreeWindow.cs @@ -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)