mirror of
https://github.com/jaquadro/NBTExplorer.git
synced 2025-01-09 17:36: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)
|
public void CreateNode (TagType type)
|
||||||
{
|
{
|
||||||
if (_nodeTree.Nodes == null || _nodeTree.Nodes.Count == 0)
|
if (SelectedNode == null || _nodeTree.Nodes.Count == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (_nodeTree.SelectedNode == null)
|
if (SelectedNode == null)
|
||||||
CreateNode(_nodeTree.Nodes[0], type);
|
CreateNode(_nodeTree.Nodes[0], type);
|
||||||
else
|
else
|
||||||
CreateNode(_nodeTree.SelectedNode, type);
|
CreateNode(SelectedNode, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void DeleteNode (TreeNode node)
|
public void DeleteNode (TreeNode node)
|
||||||
|
|
Loading…
Reference in a new issue