From 010d3a43cc640888b85f7a2f287a774d1186d1fc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Ribes?= <> Date: Wed, 23 Feb 2011 16:31:20 +0000 Subject: [PATCH] Changement du retour de handleOpen --- InterfaceQT4/viewManager.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/InterfaceQT4/viewManager.py b/InterfaceQT4/viewManager.py index 8ac1d02c..2fb24643 100644 --- a/InterfaceQT4/viewManager.py +++ b/InterfaceQT4/viewManager.py @@ -41,17 +41,22 @@ class MyTabview: def handleOpen(self,fichier=None,patron=0,units=None): + result = None if fichier is None: fichier = QFileDialog.getOpenFileName(self.appliEficas, self.appliEficas.trUtf8('Ouvrir Fichier'), self.appliEficas.CONFIGURATION.savedir, self.appliEficas.trUtf8('JDC Files (*.comm);;''All Files (*)')) - if fichier.isNull(): return + if fichier.isNull(): + return result fichier = os.path.abspath(unicode(fichier)) ulfile = os.path.abspath(unicode(fichier)) self.appliEficas.CONFIGURATION.savedir=os.path.split(ulfile)[0] self.appliEficas.addToRecentList(fichier) maPage=self.getEditor( fichier,units=units) + if maPage: + result = maPage + return result def handleClose(self,doitSauverRecent = 1,texte='&Quitter'): if doitSauverRecent : self.appliEficas.sauveRecents() -- 2.39.2