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( "" ) );
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() );