Commit eafedbe8 authored by eric pellegrini's avatar eric pellegrini
Browse files

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): ...@@ -102,9 +102,9 @@ class DataTreePanel(wx.Panel):
if data is not None: if data is not None:
if data.GetData() == name: if data.GetData() == name:
return item return item
else: match = self.get_tree_item(item, name)
continue if match is not None:
return self.get_tree_item(item, name) return match
return None return None
...@@ -154,6 +154,9 @@ class DataTreePanel(wx.Panel): ...@@ -154,6 +154,9 @@ class DataTreePanel(wx.Panel):
item = self._tree.GetSelection() item = self._tree.GetSelection()
itemData = self._tree.GetItemData(item) itemData = self._tree.GetItemData(item)
if itemData is None:
if itemData.GetData() is None: if itemData.GetData() is None:
return 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