From 1a68dc14469b7b2f07e6dbc3c5914c2b504f3da0 Mon Sep 17 00:00:00 2001 From: asl Date: Mon, 29 Aug 2005 07:38:58 +0000 Subject: [PATCH] *** empty log message *** --- src/VISUGUI/VisuGUI.cxx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 0596d493..fe36604a 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -232,7 +232,17 @@ OnExploreMEDFile() 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(); -- 2.39.2