From: Barış Metin Date: Fri, 17 Sep 2010 09:40:15 +0000 (+0200) Subject: don't continue on search when found (practically, this doesn't have an affect as... X-Git-Tag: sface-0.1-1~8^2~2 X-Git-Url: http://git.onelab.eu/?p=sface.git;a=commitdiff_plain;h=08264e3523d39d7dc843c3a96a0a2849c6eb8a49;ds=sidebyside don't continue on search when found (practically, this doesn't have an affect as it's a leaf that we search for, but just in case). --- diff --git a/sface/rspecwindow.py b/sface/rspecwindow.py index 45c2508..4db87c6 100644 --- a/sface/rspecwindow.py +++ b/sface/rspecwindow.py @@ -36,6 +36,7 @@ class RSpecView(QTreeView): if index.data().toString() == txt: recursiveExpand(index) self.scrollTo(index, self.PositionAtCenter) + return rows = model.rowCount(index) for r in range(rows):