From: mzn Date: Thu, 19 Oct 2006 08:29:58 +0000 (+0000) Subject: Fix for PAL13364(EDF PAL271 : Med export with not enough space on disk : No Warning... X-Git-Tag: V3_2_3pre1~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=80c143d3eff45e2372abb9cf7786d31ec06dfead;p=modules%2Fsmesh.git Fix for PAL13364(EDF PAL271 : Med export with not enough space on disk : No Warning message). --- diff --git a/src/DriverMED/DriverMED_W_SMESHDS_Mesh.cxx b/src/DriverMED/DriverMED_W_SMESHDS_Mesh.cxx index f6cf1ff78..aa02b4022 100644 --- a/src/DriverMED/DriverMED_W_SMESHDS_Mesh.cxx +++ b/src/DriverMED/DriverMED_W_SMESHDS_Mesh.cxx @@ -987,9 +987,11 @@ Driver_Mesh::Status DriverMED_W_SMESHDS_Mesh::Perform() } catch(const std::exception& exc) { INFOS("Follow exception was cought:\n\t"<ExportToMED( aFilename.latin1(), toCreateGroups, aFormat ); - break; - case 124: - case 121: - aMesh->ExportDAT( aFilename.latin1() ); - break; - case 126: - case 123: - aMesh->ExportUNV( aFilename.latin1() ); - break; - default: - break; + + try { + switch ( theCommandID ) { + case 125: + case 122: + aMesh->ExportToMED( aFilename.latin1(), toCreateGroups, aFormat ); + break; + case 124: + case 121: + aMesh->ExportDAT( aFilename.latin1() ); + break; + case 126: + case 123: + aMesh->ExportUNV( aFilename.latin1() ); + break; + default: + break; + } + } + catch (const SALOME::SALOME_Exception& S_ex){ + wc.suspend(); + SUIT_MessageBox::warn1(SMESHGUI::desktop(), + QObject::tr("SMESH_WRN_WARNING"), + QObject::tr("SMESH_EXPORT_FAILED"), + QObject::tr("SMESH_BUT_OK")); + wc.resume(); } } } diff --git a/src/SMESHGUI/SMESH_msg_en.po b/src/SMESHGUI/SMESH_msg_en.po index b8e73b45b..6b63444d5 100644 --- a/src/SMESHGUI/SMESH_msg_en.po +++ b/src/SMESHGUI/SMESH_msg_en.po @@ -173,6 +173,10 @@ msgstr "No available data in selection" msgid "SMESH_POLYEDRE_CREATE_ERROR" msgstr "Polyedron creation error" +#Export mesh +msgid "SMESH_EXPORT_FAILED" +msgstr "Mesh export failed.\nProbably, there is not enough space on disk." + #------------------------------------------------------------------------- # MEN #-------------------------------------------------------------------------