From: Barış Metin Date: Fri, 17 Sep 2010 08:24:01 +0000 (+0200) Subject: expand node in rpsecwindow only if it's visible X-Git-Tag: sface-0.1-1~8^2~4 X-Git-Url: http://git.onelab.eu/?p=sface.git;a=commitdiff_plain;h=d8f6e859b7f01a688b631dc5a67a0c43b0f83341 expand node in rpsecwindow only if it's visible --- diff --git a/sface/mainwindow.py b/sface/mainwindow.py index fde8ad8..fa19a43 100644 --- a/sface/mainwindow.py +++ b/sface/mainwindow.py @@ -172,4 +172,5 @@ class MainWindow(QWidget): self.status.set(msg, timeout) def nodeSelectionChanged(self, hostname): - self.rspecWindow.showNode(hostname) + if self.rspecWindow.isVisible(): + self.rspecWindow.showNode(hostname)