validate only enabled controls

This commit is contained in:
eap 2011-04-06 08:41:21 +00:00
parent 2e1e059770
commit 48ccb54bfd

View File

@ -83,10 +83,13 @@ NETGENPluginGUI_SimpleCreator::~NETGENPluginGUI_SimpleCreator()
bool NETGENPluginGUI_SimpleCreator::checkParams(QString& msg) const
{
bool result = true;
result = myNbSeg->isValid(msg,true) && result;
result = myLength->isValid(msg,true) && result;
result = myArea->isValid(msg,true) && result;
if (myVolume)
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 && myVolume->isEnabled() )
result = myVolume->isValid(msg,true) && result;
return result;