X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetFileSelector.cpp;h=dbe8e8ce30411823c8863bd989e56b5b2585101d;hb=8cd56d486b6e96b8814002f9f0f4acadd6cea11b;hp=5abfea54d6303a7337321cfeb6f63ddebba6b0f2;hpb=1b585947597658057eedf6223a230011e20a959d;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetFileSelector.cpp b/src/ModuleBase/ModuleBase_WidgetFileSelector.cpp index 5abfea54d..dbe8e8ce3 100644 --- a/src/ModuleBase/ModuleBase_WidgetFileSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetFileSelector.cpp @@ -88,7 +88,9 @@ bool ModuleBase_WidgetFileSelector::restoreValueCustom() AttributeStringPtr aStringAttr = aData->string(attributeID()); bool isBlocked = myPathField->blockSignals(true); - myPathField->setText(QString::fromStdString(aStringAttr->value())); + QString aNewText = QString::fromStdString(aStringAttr->value()); + if( myPathField->text() != aNewText ) + myPathField->setText( aNewText ); myPathField->blockSignals(isBlocked); return true;