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