diff options
author | necoro <> | 2007-04-18 18:05:53 +0000 |
---|---|---|
committer | necoro <> | 2007-04-18 18:05:53 +0000 |
commit | 188343e825e9c5bfbc08e4132845371b787fb81e (patch) | |
tree | 8ba43e763a21d3b9f3d742b8b3a1ca5af822ef7f /portato/gui/qt/tree.py | |
parent | 299ae3c9b6c7356217223b919440e42d50233695 (diff) | |
download | portato-188343e825e9c5bfbc08e4132845371b787fb81e.tar.gz portato-188343e825e9c5bfbc08e4132845371b787fb81e.tar.bz2 portato-188343e825e9c5bfbc08e4132845371b787fb81e.zip |
finished Qt-Frontend
Diffstat (limited to '')
-rw-r--r-- | portato/gui/qt/tree.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/portato/gui/qt/tree.py b/portato/gui/qt/tree.py index a8c3e66..6e9950f 100644 --- a/portato/gui/qt/tree.py +++ b/portato/gui/qt/tree.py @@ -70,7 +70,12 @@ class QtTree (Tree): def next_iter (self, it): iter = Qt.QTreeWidgetItemIterator(it) iter += 1 # next iter ... - return iter.value() + + newIt = iter.value() + if newIt.parent() != it.parent(): # stop if we left the current parent + return None + else: + return newIt def get_value (self, it, column): return str(it.text(column)) |