diff options
Diffstat (limited to '')
-rw-r--r-- | portato/gui/qt/tree.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/portato/gui/qt/tree.py b/portato/gui/qt/tree.py index 6e9950f..7c0fa4c 100644 --- a/portato/gui/qt/tree.py +++ b/portato/gui/qt/tree.py @@ -72,7 +72,7 @@ class QtTree (Tree): iter += 1 # next iter ... newIt = iter.value() - if newIt.parent() != it.parent(): # stop if we left the current parent + if not newIt or newIt.parent() != it.parent(): # stop if we left the current parent return None else: return newIt |