]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
fix PAL10042: "Dump study failed" message box isn't appears.
authoreap <eap@opencascade.com>
Thu, 17 Nov 2005 09:23:05 +0000 (09:23 +0000)
committereap <eap@opencascade.com>
Thu, 17 Nov 2005 09:23:05 +0000 (09:23 +0000)
src/SalomeApp/SalomeApp_Application.cxx
src/SalomeApp/resources/SalomeApp_msg_en.po

index bddff0e9cc2febae9e15b793ca9457e649144f4e..26df49c6c67ec9f26b0b3c5d8b67a6c90e8a5fb1 100644 (file)
@@ -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") );
   }
 }
 
index d5ac52bd52a8c9d989c184a445fca1ea7981f740..57b463d2e60e55383a87f75f063067e94e206a46 100644 (file)
@@ -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"
+