restore baris tree expansion feature. Removed >print< statements.
[sface.git] / sface / rspecwindow.py
index b6b8f0a..2abd5fd 100644 (file)
@@ -27,7 +27,11 @@ class RSpecView(XmlView):
             self.expand(index)
 
         def search(index):
-            if index.data().toString() == txt:
+            # voodoo alert: baris was using index.data()
+            # and apparently it worked. But after me
+            # messing around, only index.model().data(index)
+            # seems to give non-empty QVariant as output.
+            if index.model().data(index).toString() == txt:
                 recursiveExpand(index)
                 self.scrollTo(index, self.PositionAtCenter)
                 return
@@ -58,7 +62,6 @@ class RSpecWindow(QDialog):
         layout.addWidget(self.view)
         self.setLayout(layout)
         
-        print 'CHILDREN', str(self.children())
         self.updateView()
 
     def showNode(self, hostname):