mirror of
https://github.com/jaquadro/NBTExplorer.git
synced 2025-01-09 01:16:25 +00:00
Fixed regression in node controller preventing creation of new nodes.
This commit is contained in:
parent
ae03136b5b
commit
85ca29cb79
1 changed files with 3 additions and 3 deletions
|
@ -183,13 +183,13 @@ namespace NBTExplorer.Controllers
|
|||
|
||||
public void CreateNode (TagType type)
|
||||
{
|
||||
if (_nodeTree.Nodes == null || _nodeTree.Nodes.Count == 0)
|
||||
if (SelectedNode == null || _nodeTree.Nodes.Count == 0)
|
||||
return;
|
||||
|
||||
if (_nodeTree.SelectedNode == null)
|
||||
if (SelectedNode == null)
|
||||
CreateNode(_nodeTree.Nodes[0], type);
|
||||
else
|
||||
CreateNode(_nodeTree.SelectedNode, type);
|
||||
CreateNode(SelectedNode, type);
|
||||
}
|
||||
|
||||
public void DeleteNode (TreeNode node)
|
||||
|
|
Loading…
Reference in a new issue