if(aFileInfo.exists()){
application()->putInfo( tr("MEN_EXPLORE_MED_FILE") + " " + aFileInfo.filePath() + "..." );
std::string aStudyName = aStudy->Name();
- aGen->readStructFileWithFieldType(aFileInfo.filePath(),aStudyName.c_str());
+ try
+ {
+ aGen->readStructFileWithFieldType(aFileInfo.filePath(),aStudyName.c_str());
+ }
+ catch(...)
+ {
+ SUIT_MessageBox::warn1(GetDesktop(this),
+ tr("WRN_VISU"),
+ tr("ERR_ERROR_IN_THE_FILE"),
+ tr("BUT_OK"));
+ }
application()->putInfo(aFileInfo.filePath()+tr("INF_DONE"));
getApp()->updateObjectBrowser(true); // as need to update MED tree
getApp()->updateActions();