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: V6_3_1rc1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c5d715e1684e180198be4fbbe45e53c679a241c8;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):