]> SALOME platform Git repositories - tools/eficas.git/commitdiff
Salome HOME
*** empty log message ***
authorPascale Noyret <pascale.noyret@edf.fr>
Tue, 23 Oct 2012 14:02:22 +0000 (14:02 +0000)
committerPascale Noyret <pascale.noyret@edf.fr>
Tue, 23 Oct 2012 14:02:22 +0000 (14:02 +0000)
InterfaceQT4/qtEficas.py

index 93fefc67445d954ea733229f0a775698c6f55ae6..448c4d5245dd3014683e1e8f097f8efa4f36945c 100644 (file)
@@ -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__':