From f8e13fee21226a6c2fb03599e65c7304acfac0b3 Mon Sep 17 00:00:00 2001 From: Renaud Barate Date: Tue, 21 Jun 2011 09:51:32 +0000 Subject: [PATCH] Fix bug #1886 (error message when clicking on button Fichier) --- InterfaceQT4/monUniqueBasePanel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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): -- 2.39.2