Skip to content
Snippets Groups Projects
Commit 68fc011e authored by Otmane Lahlou's avatar Otmane Lahlou
Browse files

ENH: no need for if-else condition

parent 411db1e2
No related branches found
No related tags found
No related merge requests found
......@@ -55,19 +55,8 @@ QtWidgetModel* QtWidgetParameterBase::GetModel()
// current widget
void QtWidgetParameterBase::SetActivationState( bool value )
{
if (value)
{
this->setEnabled(true);
m_Param->SetChecked(true);
m_Param->SetActive(true);
}
else
{
this->setEnabled(false);
m_Param->SetChecked(false);
m_Param->SetActive(false);
}
}
this->setEnabled(value);
m_Param->SetChecked(value);
m_Param->SetActive(value);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment