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):
if data is not None:
if data.GetData() == name:
return item
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:
if itemData.GetData() is 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