Commit 949bcbc7 authored by Remi Perenon's avatar Remi Perenon

Fixed User Definition issue (issue #19)

parent e6cdd6bf
......@@ -140,7 +140,9 @@ class UserDefinitionViewer(wx.Dialog):
while item != self._root:
item = self._tree.GetItemParent(item)
self._tree.Expand(item)
# Check if item is not root (leading to crash otherwise)
if item != self._root:
self._tree.Expand(item)
def on_show_info(self, event=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