expand node in rpsecwindow only if it's visible
[sface.git] / sface / mainwindow.py
index fde8ad8..fa19a43 100644 (file)
@@ -172,4 +172,5 @@ class MainWindow(QWidget):
         self.status.set(msg, timeout)
 
     def nodeSelectionChanged(self, hostname):
         self.status.set(msg, timeout)
 
     def nodeSelectionChanged(self, hostname):
-        self.rspecWindow.showNode(hostname)
+        if self.rspecWindow.isVisible():
+            self.rspecWindow.showNode(hostname)