validate only enabled controls
This commit is contained in:
parent
2e1e059770
commit
48ccb54bfd
@ -83,10 +83,13 @@ NETGENPluginGUI_SimpleCreator::~NETGENPluginGUI_SimpleCreator()
|
||||
bool NETGENPluginGUI_SimpleCreator::checkParams(QString& msg) const
|
||||
{
|
||||
bool result = true;
|
||||
if ( myNbSeg->isEnabled() )
|
||||
result = myNbSeg->isValid(msg,true) && result;
|
||||
if ( myLength->isEnabled() )
|
||||
result = myLength->isValid(msg,true) && result;
|
||||
if ( myArea->isEnabled() )
|
||||
result = myArea->isValid(msg,true) && result;
|
||||
if (myVolume)
|
||||
if (myVolume && myVolume->isEnabled() )
|
||||
result = myVolume->isValid(msg,true) && result;
|
||||
|
||||
return result;
|
||||
|
Loading…
x
Reference in New Issue
Block a user