From: Pascale Noyret Date: Tue, 23 Oct 2012 14:02:22 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: LOGILAB~45 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dd087908abd25d884986a01b21a785c166a69600;p=tools%2Feficas.git *** empty log message *** --- 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__':