]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Change error message if Save operation fails, to display possible reasons of the...
authorvsr <vsr@opencascade.com>
Thu, 26 Jan 2012 09:22:27 +0000 (09:22 +0000)
committervsr <vsr@opencascade.com>
Thu, 26 Jan 2012 09:22:27 +0000 (09:22 +0000)
src/STD/STD_Application.cxx
src/STD/resources/STD_msg_en.ts

index f3c75a91f098fe5181bdb96ffb9486d4e9a0435f..5ca89b64f707822f81bc56fb61c3c6ead667469c 100755 (executable)
@@ -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( "" ) );
index da25cadba10c4dcc6d0d712e843532d7dfed32da..84899db0f9e649e0e36bb50124f2d1d2b3c4026a 100644 (file)
@@ -461,7 +461,10 @@ Do you want to save changes?</translation>
     <message>
         <source>INF_DOC_SAVING_FAILS</source>
         <translation>Can&apos;t save file &quot;%1&quot;.
-Possible reason is permission denied or disc full.
+Possible reasons:
+- permission denied;
+- unsufficient disk space;
+- application error.
 Try to use another file name.</translation>
     </message>
     <message>