const std::string& theParentId)
: ModuleBase_ModelWidget(theParent, theData, theParentId)
{
- myHasDefaultValue = false;
-
myTitle = QString::fromStdString(theData->getProperty("title"));
//TODO(sbh): Get them from the feature
myFormats = getSupportedFormats(theData);
{
DataPtr aData = myFeature->data();
AttributeStringPtr aStringAttr = aData->string(attributeID());
- QString aModelValue = QString::fromStdString(aStringAttr->value());
QString aWidgetValue = myPathField->text();
- if(aModelValue != aWidgetValue) {
- aStringAttr->setValue(aWidgetValue.toStdString());
- updateObject(myFeature);
- }
+ aStringAttr->setValue(aWidgetValue.toStdString());
+ updateObject(myFeature);
return true;
}