{
bool isDone = false;
- Handle(SelectMgr_EntityOwner) anOwner = theValue.owner();
- if (isValid(anOwner)) {
- setSelection(anOwner);
+ if (isValidSelection(theValue)) {
+ isDone = setSelectionCustom(theValue);
updateObject(myFeature);
emit valuesChanged();
}
}
//********************************************************************
-bool ModuleBase_WidgetValidated::isValid(const Handle_SelectMgr_EntityOwner& theOwner)
+bool ModuleBase_WidgetValidated::isValidSelection(const ModuleBase_ViewerPrs& theValue)
{
DataPtr aData = myFeature->data();
AttributePtr anAttribute = myFeature->attribute(attributeID());
storeAttributeValue();
// saves the owner value to the widget attribute
- setSelection(theOwner);
+ bool aValid = setSelectionCustom(theValue);
- // checks the attribute validity
- bool aValid = isValidAttribute();
+ if (aValid)
+ // checks the attribute validity
+ aValid = isValidAttribute();
// restores the current values of the widget attribute
restoreAttributeValue(aValid);