From 9cd9b72370c59098c3bcbc9ca8e1602d3d11d0d3 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 26 Jan 2012 09:22:27 +0000 Subject: [PATCH] Change error message if Save operation fails, to display possible reasons of the failure --- src/STD/STD_Application.cxx | 2 +- src/STD/resources/STD_msg_en.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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. -- 2.39.2