From 188343e825e9c5bfbc08e4132845371b787fb81e Mon Sep 17 00:00:00 2001 From: necoro <> Date: Wed, 18 Apr 2007 18:05:53 +0000 Subject: finished Qt-Frontend --- portato/gui/qt/tree.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'portato/gui/qt/tree.py') 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)) -- cgit v1.2.3-54-g00ecf