From: vsr Date: Thu, 26 Jan 2012 09:22:27 +0000 (+0000) Subject: Change error message if Save operation fails, to display possible reasons of the... X-Git-Tag: V6_5_0a1~76 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9cd9b72370c59098c3bcbc9ca8e1602d3d11d0d3;p=modules%2Fgui.git Change error message if Save operation fails, to display possible reasons of the failure --- diff --git a/src/STD/STD_Application.cxx b/src/STD/STD_Application.cxx index f3c75a91f..5ca89b64f 100755 --- a/src/STD/STD_Application.cxx +++ b/src/STD/STD_Application.cxx @@ -558,7 +558,7 @@ void STD_Application::onSaveDoc() putInfo( "" ); // displaying a message box as SUIT_Validator in case file can't be written (the most frequent case) SUIT_MessageBox::critical( desktop(), tr( "ERR_ERROR" ), - tr( "ERR_PERMISSION_DENIED" ).arg( activeStudy()->studyName() ) ); + tr( "INF_DOC_SAVING_FAILS" ).arg( activeStudy()->studyName() ) ); } else putInfo( tr( "INF_DOC_SAVED" ).arg( "" ) ); diff --git a/src/STD/resources/STD_msg_en.ts b/src/STD/resources/STD_msg_en.ts index da25cadba..84899db0f 100644 --- a/src/STD/resources/STD_msg_en.ts +++ b/src/STD/resources/STD_msg_en.ts @@ -461,7 +461,10 @@ Do you want to save changes? INF_DOC_SAVING_FAILS Can't save file "%1". -Possible reason is permission denied or disc full. +Possible reasons: +- permission denied; +- unsufficient disk space; +- application error. Try to use another file name.