]> SALOME platform Git repositories - plugins/blsurfplugin.git/commitdiff
Salome HOME
If there is an error, returns the message to display a single Warning Dialog.
authorgdd <gdd>
Tue, 10 Jan 2012 14:58:39 +0000 (14:58 +0000)
committergdd <gdd>
Tue, 10 Jan 2012 14:58:39 +0000 (14:58 +0000)
src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx

index 5e6d4fc68bf07c10d0ea51889ce2e166aad54441..478b55a990f2d63f510c151bb7c481d2883c07df 100644 (file)
@@ -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;
           }
         }