don't continue on search when found (practically, this doesn't have an affect as...
authorBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Fri, 17 Sep 2010 09:40:15 +0000 (11:40 +0200)
committerBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Fri, 17 Sep 2010 09:40:15 +0000 (11:40 +0200)
sface/rspecwindow.py

index 45c2508..4db87c6 100644 (file)
@@ -36,6 +36,7 @@ class RSpecView(QTreeView):
             if index.data().toString() == txt:
                 recursiveExpand(index)
                 self.scrollTo(index, self.PositionAtCenter)
             if index.data().toString() == txt:
                 recursiveExpand(index)
                 self.scrollTo(index, self.PositionAtCenter)
+                return
             
             rows = model.rowCount(index)
             for r in range(rows):
             
             rows = model.rowCount(index)
             for r in range(rows):