Fixed a problem with editing not being disabled in after edit

This commit is contained in:
StingRaptor 2016-02-07 23:17:35 +01:00
parent 194fe17ee3
commit 4c252e13da
1 changed files with 9 additions and 1 deletions

View File

@ -452,6 +452,10 @@ private void tvRegistryDirectory_AfterLabelEdit(object sender, NodeLabelEditEven
e.Node.BeginEdit();
}
}
else
{
tvRegistryDirectory.LabelEdit = false;
}
}
private void tvRegistryDirectory_BeforeExpand(object sender, TreeViewCancelEventArgs e)
@ -596,7 +600,7 @@ private void lstRegistryKeys_AfterLabelEdit(object sender, LabelEditEventArgs e)
//Normal rename action
//Perform Rename action
new xServer.Core.Packets.ServerPackets.DoRenameRegistryValue(tvRegistryDirectory.SelectedNode.FullPath, lstRegistryKeys.Items[index].Name, e.Label).Execute(_connectClient);
lstRegistryKeys.LabelEdit = false;
}
else
@ -607,6 +611,10 @@ private void lstRegistryKeys_AfterLabelEdit(object sender, LabelEditEventArgs e)
}
}
else
{
lstRegistryKeys.LabelEdit = false;
}
}
private void lstRegistryKeys_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e)