X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetFileSelector.cpp;h=a2e8186c8f2e85797ae3468b11507ab77f803405;hb=9d08fda0173567e0b8f1232a9dabb330fdeffe0f;hp=7d834cca412be1c0266670bb609ece6bfc20d9a5;hpb=542c9d721fbef80eb2040ef248fdd431cad2e631;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetFileSelector.cpp b/src/ModuleBase/ModuleBase_WidgetFileSelector.cpp index 7d834cca4..a2e8186c8 100644 --- a/src/ModuleBase/ModuleBase_WidgetFileSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetFileSelector.cpp @@ -29,8 +29,6 @@ ModuleBase_WidgetFileSelector::ModuleBase_WidgetFileSelector(QWidget* theParent, 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); @@ -67,12 +65,9 @@ bool ModuleBase_WidgetFileSelector::storeValue() const { 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; }