Commit eafedbe8 authored by eric pellegrini's avatar eric pellegrini

Bugfix in DataTreePanel::get_tree_item

parent ec46224d
Pipeline #4258 passed with stages
in 25 minutes and 36 seconds
......@@ -102,9 +102,9 @@ class DataTreePanel(wx.Panel):
if data is not None:
if data.GetData() == name:
return item
else:
continue
return self.get_tree_item(item, name)
match = self.get_tree_item(item, name)
if match is not None:
return match
return None
......@@ -154,6 +154,9 @@ class DataTreePanel(wx.Panel):
item = self._tree.GetSelection()
itemData = self._tree.GetItemData(item)
if itemData is None:
return
if itemData.GetData() is None:
return
......
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