Salome HOME
Fix some bugs.
[plugins/netgenplugin.git] / src / GUI / NETGENPluginGUI_SimpleCreator.cxx
index 786b149998d2ac804704a036f932363846653640..1bf52c0cf85646c281ebbcaaa5475bf23161e02d 100644 (file)
@@ -80,9 +80,16 @@ NETGENPluginGUI_SimpleCreator::~NETGENPluginGUI_SimpleCreator()
 {
 }
 
-bool NETGENPluginGUI_SimpleCreator::checkParams() const
+bool NETGENPluginGUI_SimpleCreator::checkParams(QString& msg) const
 {
-  return true;
+  bool result = true;
+  result = myNbSeg->isValid(msg,true) && result;
+  result = myLength->isValid(msg,true) && result;
+  result = myArea->isValid(msg,true) && result;
+  if (myVolume)
+    result = myVolume->isValid(msg,true) && result;
+  
+  return result;
 }
 
 QFrame* NETGENPluginGUI_SimpleCreator::buildFrame()
@@ -329,7 +336,6 @@ QString NETGENPluginGUI_SimpleCreator::storeParams() const
         h->SetMaxElementVolume( myVolume->value() );
         valStr += "; vol=" + myVolume->text();
         aVariablesList.append( myVolume->text());
-        h->SetParameters(SMESHGUI::JoinObjectParameters(aVariablesList));
       }
       else {
         h->LengthFromFaces();