From 3a4a991fd05cb730c7122c84d99ac10bd3597977 Mon Sep 17 00:00:00 2001 From: stv Date: Wed, 1 Jun 2005 10:50:24 +0000 Subject: [PATCH] no message --- src/STD/STD_Application.cxx | 5 +++-- src/STD/resources/STD_msg_en.po | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) 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?" -- 2.39.2