const Config_WidgetAPI* theData)
: ModuleBase_ModelWidget(theParent, theData), myIsFirst(true)
{
- myHasValue = defaultValues.contains(myFeatureId);
+ myHasValue = defaultValues.contains(myFeatureId + attributeID());
if (myHasValue)
- myDefValue = defaultValues[myFeatureId];
+ myDefValue = defaultValues[myFeatureId + attributeID()];
else
myDefValue = 0;
void ModuleBase_WidgetChoice::onFeatureAccepted()
{
- defaultValues[myFeatureId] = myDefValue;
+ defaultValues[myFeatureId + attributeID()] = myDefValue;
}