From 85ca29cb795123dc92d8effb4f01c3c49b26d759 Mon Sep 17 00:00:00 2001 From: Justin Aquadro Date: Fri, 1 Nov 2013 22:18:20 -0400 Subject: [PATCH] Fixed regression in node controller preventing creation of new nodes. --- Controllers/NodeTreeController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Controllers/NodeTreeController.cs b/Controllers/NodeTreeController.cs index 66c0fca..8f608f2 100644 --- a/Controllers/NodeTreeController.cs +++ b/Controllers/NodeTreeController.cs @@ -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)