From: gdd Date: Tue, 10 Jan 2012 14:58:39 +0000 (+0000) Subject: If there is an error, returns the message to display a single Warning Dialog. X-Git-Tag: V6_5_0a1~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4e179eb95bf7630c61a992bb546f8ed9a8b72c85;p=plugins%2Fblsurfplugin.git If there is an error, returns the message to display a single Warning Dialog. --- diff --git a/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx b/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx index 5e6d4fc..478b55a 100644 --- a/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx +++ b/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx @@ -577,9 +577,7 @@ bool BLSURFPluginGUI_HypothesisCreator::checkParams(QString& msg) const } catch ( const SALOME::SALOME_Exception& ex ) { - SUIT_MessageBox::critical( dlg(), - tr("SMESH_ERROR"), - ex.details.text.in() ); + msg = ex.details.text.in(); ok = false; } } @@ -620,9 +618,7 @@ bool BLSURFPluginGUI_HypothesisCreator::checkParams(QString& msg) const } catch ( const SALOME::SALOME_Exception& ex ) { - SUIT_MessageBox::critical( dlg(), - tr("SMESH_ERROR"), - ex.details.text.in() ); + msg = ex.details.text.in(); ok = false; } }