minor tweaks
[sface.git] / sface / screens / mainscreen.py
index d56bca5..547baec 100644 (file)
@@ -47,12 +47,10 @@ class NodeView(QTreeView):
 
         model.emit(SIGNAL("dataChanged(QModelIndex, QModelIndex)"), hostname_index, hostname_index)
 
-    def mouseReleaseEvent(self, event):
-        index = self.currentIndex()
-        model = index.model()
-        hostname_index = model.index(index.row(), 1, index.parent())
+    def currentChanged(self, current, previous):
+        model = current.model()
+        hostname_index = model.index(current.row(), 1, current.parent())
         hostname_data = hostname_index.data().toString()
-
         self.emit(SIGNAL('hostnameClicked(QString)'), hostname_data)
         
                 
@@ -459,11 +457,15 @@ class MainScreen(SfaScreen):
         SfaScreen.__init__(self, parent)
 
         slice = SliceWidget(self)
-        self.init(slice, "Main Window", "OneLab Federation GUI")
+        self.init(slice, "Main Window", "OneLab SFA crawler")
 
+    def rspecUpdated(self):
+        self.mainwin.rspecWindow.updateView()
+        
     def configurationChanged(self):
         self.widget.updateSliceName()
         self.widget.updateView()
+        self.mainwin.rspecWindow.updateView()
 
     def nodeSelectionChanged(self, hostname):
         self.mainwin.nodeSelectionChanged(hostname)