From: stv Date: Wed, 1 Jun 2005 10:50:24 +0000 (+0000) Subject: no message X-Git-Tag: T3_0_0_a1~41 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3a4a991fd05cb730c7122c84d99ac10bd3597977;p=modules%2Fgui.git no message --- diff --git a/src/STD/STD_Application.cxx b/src/STD/STD_Application.cxx index 9f7075162..6f130406e 100755 --- a/src/STD/STD_Application.cxx +++ b/src/STD/STD_Application.cxx @@ -321,8 +321,9 @@ bool STD_Application::isPossibleToClose() activeStudy()->abortAllOperations(); if ( activeStudy()->isModified() ) { - int aAnswer = SUIT_MessageBox::warn3( desktop(), tr( "TOT_DESK_FILE_CLOSE" ), - tr( "Document \"%1\" has been modified.\nDo you want to save changes?").arg( activeStudy()->studyName() ), + QString sName = activeStudy()->studyName().stripWhiteSpace(); + QString msg = sName.isEmpty() ? tr( "INF_DOC_MODIFIED" ) : tr ( "INF_DOCUMENT_MODIFIED" ).arg( sName ); + int aAnswer = SUIT_MessageBox::warn3( desktop(), tr( "TOT_DESK_FILE_CLOSE" ), msg, tr( "BUT_YES" ), tr( "BUT_NO" ), tr( "BUT_CANCEL" ), 1, 2, 3, 1 ); switch ( aAnswer ) { diff --git a/src/STD/resources/STD_msg_en.po b/src/STD/resources/STD_msg_en.po index 81e766235..8e3d84851 100755 --- a/src/STD/resources/STD_msg_en.po +++ b/src/STD/resources/STD_msg_en.po @@ -308,3 +308,8 @@ msgstr "File \"%1\" already exists.\nDo you want to continue?" msgid "TIT_FILE_SAVEAS" msgstr "Save As" +msgid "STD_Application::INF_DOC_MODIFIED" +msgstr "Document has been modified.\nDo you want to save changes?" + +msgid "STD_Application::INF_DOCUMENT_MODIFIED" +msgstr "Document \"%1\" has been modified.\nDo you want to save changes?"