From: asl Date: Tue, 25 Aug 2015 08:20:15 +0000 (+0300) Subject: Issue #860 - patch to avoid the text reset X-Git-Tag: V_1.4.0_beta4~257 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=09dd6b8ad4c234abf68787a734454fceda424413;p=modules%2Fshaper.git Issue #860 - patch to avoid the text reset --- 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;