Commit 10fea26b authored by eric pellegrini's avatar eric pellegrini

Fixed problem with data tree

parent 0e98d3fd
......@@ -98,9 +98,12 @@ class DataTreePanel(wx.Panel):
def get_tree_item(self, node, name):
for item in self.get_children(node):
if self._tree.GetItemData(item).GetData() == name:
data = self._tree.GetItemData(item)
if data is not None:
if data.GetData() == name:
return item
else:
continue
return self.get_tree_item(item, name)
return None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment