]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
no message
authorstv <stv@opencascade.com>
Mon, 27 Jun 2005 11:58:58 +0000 (11:58 +0000)
committerstv <stv@opencascade.com>
Mon, 27 Jun 2005 11:58:58 +0000 (11:58 +0000)
src/STD/STD_Application.cxx

index 072ef073827c396341561b0ad14c557249b300fa..b23c978dac74aed1e7ef628ebf4636905b1e551c 100755 (executable)
@@ -359,11 +359,10 @@ bool STD_Application::isPossibleToClose()
       switch ( aAnswer )
       {
       case 1:
-        if ( !activeStudy()->isSaved() )
-          if ( !onSaveAsDoc() )
-            return false;
-        else
+        if ( activeStudy()->isSaved() )
           onSaveDoc();
+        else if ( !onSaveAsDoc() )
+          return false;
         break;
       case 2:
         break;