From: asv Date: Mon, 20 Mar 2006 14:45:15 +0000 (+0000) Subject: Small changes in "wording" of error messages. X-Git-Tag: OCC_3_2_0a2_TC~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=faf512c462f279c9bc3014a7b3b91c756d976ec9;p=modules%2Fgui.git Small changes in "wording" of error messages. --- diff --git a/src/STD/STD_Application.cxx b/src/STD/STD_Application.cxx index 68b7b1a06..a0c3f43a1 100755 --- a/src/STD/STD_Application.cxx +++ b/src/STD/STD_Application.cxx @@ -472,8 +472,11 @@ void STD_Application::onSaveDoc() if ( !isOk ) { putInfo( "" ); - SUIT_MessageBox::error1( desktop(), tr( "TIT_FILE_SAVEAS" ), - tr( "MSG_CANT_SAVE" ).arg( activeStudy()->studyName() ), tr( "BUT_OK" ) ); + // displaying a message box as SUIT_Validator in case file can't be written (the most frequent case) + SUIT_MessageBox::error1( desktop(), + tr( "ERR_ERROR" ), + tr( "ERR_PERMISSION_DENIED" ).arg( activeStudy()->studyName() ), + tr( "BUT_OK" ) ); } else putInfo( tr( "INF_DOC_SAVED" ).arg( "" ) ); @@ -510,7 +513,8 @@ bool STD_Application::onSaveAsDoc() if ( !isOk ) SUIT_MessageBox::error1( desktop(), tr( "ERROR" ), - tr( "INF_DOC_SAVING_FAILS" ).arg( aName ), tr( "BUT_OK" ) ); + tr( "INF_DOC_SAVING_FAILS" ).arg( aName ), + tr( "BUT_OK" ) ); } studySaved( activeStudy() );