Skip to content

Commit

Permalink
Fixed regression in node controller preventing creation of new nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaquadro committed Nov 2, 2013
1 parent ae03136 commit 85ca29c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Controllers/NodeTreeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,13 @@ public void CreateNode (TreeNode node, TagType type)

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)
Expand Down

0 comments on commit 85ca29c

Please sign in to comment.