From dd087908abd25d884986a01b21a785c166a69600 Mon Sep 17 00:00:00 2001 From: Pascale Noyret Date: Tue, 23 Oct 2012 14:02:22 +0000 Subject: [PATCH] *** empty log message *** --- InterfaceQT4/qtEficas.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/InterfaceQT4/qtEficas.py b/InterfaceQT4/qtEficas.py index 93fefc67..448c4d52 100644 --- a/InterfaceQT4/qtEficas.py +++ b/InterfaceQT4/qtEficas.py @@ -442,10 +442,8 @@ class Appli(Ui_Eficas,QMainWindow): # On peut sortir sur Abort res=self.viewmanager.handleCloseAll() if (res != 2) : - if self.salome : - self.close() - else : - qApp.closeAllWindows() + self.close() + return res def editCopy(self): self.viewmanager.handleEditCopy() @@ -495,6 +493,9 @@ class Appli(Ui_Eficas,QMainWindow): # sys.path.remove(pathCode) + def closeEvent(self,event): + res=self.fileExit() + if res==2 : event.ignore() if __name__=='__main__': -- 2.39.2