From 1292b3367a82e807454410dea4b7853de69929c5 Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 17 Nov 2005 09:23:05 +0000 Subject: [PATCH] fix PAL10042: "Dump study failed" message box isn't appears. --- src/SalomeApp/SalomeApp_Application.cxx | 7 ++++++- src/SalomeApp/resources/SalomeApp_msg_en.po | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index bddff0e9c..26df49c6c 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -496,7 +496,12 @@ void SalomeApp_Application::onDumpStudy( ) if(!aFileName.isEmpty()) { QFileInfo aFileInfo(aFileName); - aStudy->DumpStudy( aFileInfo.dirPath( true ).latin1(), aFileInfo.baseName().latin1(), toPublish ); + bool res = aStudy->DumpStudy( aFileInfo.dirPath( true ).latin1(), aFileInfo.baseName().latin1(), toPublish ); + if ( !res ) + SUIT_MessageBox::warn1 ( desktop(), + QObject::tr("WRN_WARNING"), + tr("WRN_DUMP_STUDY_FAILED"), + QObject::tr("BUT_OK") ); } } diff --git a/src/SalomeApp/resources/SalomeApp_msg_en.po b/src/SalomeApp/resources/SalomeApp_msg_en.po index d5ac52bd5..57b463d2e 100644 --- a/src/SalomeApp/resources/SalomeApp_msg_en.po +++ b/src/SalomeApp/resources/SalomeApp_msg_en.po @@ -207,3 +207,6 @@ msgstr "No" msgid "SalomeApp_Application::PUBLISH_IN_STUDY" msgstr "Publish in study" +msgid "SalomeApp_Application::WRN_DUMP_STUDY_FAILED" +msgstr "Dump study failed" + -- 2.39.2