Fix for PAL13364(EDF PAL271 : Med export with not enough space on disk : No Warning message).

This commit is contained in:
mzn 2006-10-19 08:29:58 +00:00
parent 75c763d85b
commit 80c143d3ef
3 changed files with 32 additions and 15 deletions

View File

@ -987,9 +987,11 @@ Driver_Mesh::Status DriverMED_W_SMESHDS_Mesh::Perform()
}
catch(const std::exception& exc) {
INFOS("Follow exception was cought:\n\t"<<exc.what());
throw;
}
catch(...) {
INFOS("Unknown exception was cought !!!");
throw;
}
myMeshId = -1;

View File

@ -352,6 +352,8 @@ using namespace std;
if ( aFile.exists() )
aFile.remove();
SUIT_OverrideCursor wc;
try {
switch ( theCommandID ) {
case 125:
case 122:
@ -369,6 +371,15 @@ using namespace std;
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();
}
}
}
}
}

View File

@ -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
#-------------------------------------------------------------------------