From 08264e3523d39d7dc843c3a96a0a2849c6eb8a49 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Fri, 17 Sep 2010 11:40:15 +0200 Subject: [PATCH] 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). --- sface/rspecwindow.py | 1 + 1 file changed, 1 insertion(+) 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): -- 2.43.0