From: stv Date: Mon, 27 Jun 2005 11:58:58 +0000 (+0000) Subject: no message X-Git-Tag: T3_0_0_a4~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cada0ac15061402772f6b6aecd001c1297cd4306;p=modules%2Fgui.git no message --- diff --git a/src/STD/STD_Application.cxx b/src/STD/STD_Application.cxx index 072ef0738..b23c978da 100755 --- a/src/STD/STD_Application.cxx +++ b/src/STD/STD_Application.cxx @@ -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;