]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Small changes in "wording" of error messages.
authorasv <asv@opencascade.com>
Mon, 20 Mar 2006 14:45:15 +0000 (14:45 +0000)
committerasv <asv@opencascade.com>
Mon, 20 Mar 2006 14:45:15 +0000 (14:45 +0000)
src/STD/STD_Application.cxx

index 68b7b1a066ea646c32b846fa24a6fbc60340ee63..a0c3f43a1357ab99f8b941eb613d369f006cb370 100755 (executable)
@@ -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() );