From 4e179eb95bf7630c61a992bb546f8ed9a8b72c85 Mon Sep 17 00:00:00 2001 From: gdd Date: Tue, 10 Jan 2012 14:58:39 +0000 Subject: [PATCH] If there is an error, returns the message to display a single Warning Dialog. --- src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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; } } -- 2.39.2