From: Renaud Barate Date: Tue, 21 Jun 2011 09:51:32 +0000 (+0000) Subject: Fix bug #1886 (error message when clicking on button Fichier) X-Git-Tag: mergeto_V6_main_19jul11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=59b41ffc2008cf7df81296646846c9529bf060d7;p=tools%2Feficas.git Fix bug #1886 (error message when clicking on button Fichier) --- diff --git a/InterfaceQT4/monUniqueBasePanel.py b/InterfaceQT4/monUniqueBasePanel.py index b7ced50e..4a4f3073 100644 --- a/InterfaceQT4/monUniqueBasePanel.py +++ b/InterfaceQT4/monUniqueBasePanel.py @@ -178,8 +178,8 @@ class MonUniqueBasePanel(DUnBase,QTPanel,SaisieValeur): self.connect(self.BSelectInFile,SIGNAL("clicked()"),self.BSelectInFilePressed) else : self.BSelectInFile.setVisible(1) - else: - self.BSelectInFile.setVisible(0) + elif hasattr(self, "BSelectInFile"): + self.BSelectInFile.setVisible(0) def BSelectInFilePressed(self):