From: sbh Date: Thu, 16 Apr 2015 17:30:00 +0000 (+0300) Subject: Block signals when adding parameters X-Git-Tag: V_1.1.0~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=986feb310f50417b04ddd118ee42d6d2194e0f89;p=modules%2Fshaper.git Block signals when adding parameters --- diff --git a/src/ModuleBase/ModuleBase_WidgetDoubleValue.cpp b/src/ModuleBase/ModuleBase_WidgetDoubleValue.cpp index 551f9e7c8..9e222e986 100644 --- a/src/ModuleBase/ModuleBase_WidgetDoubleValue.cpp +++ b/src/ModuleBase/ModuleBase_WidgetDoubleValue.cpp @@ -134,7 +134,9 @@ bool ModuleBase_WidgetDoubleValue::restoreValue() AttributeDoublePtr aRef = aData->real(attributeID()); std::string aTextRepr = aRef->text(); if (!aTextRepr.empty()) { + bool isBlocked = mySpinBox->blockSignals(true); mySpinBox->setText(QString::fromStdString(aTextRepr)); + mySpinBox->blockSignals(isBlocked); } else { ModuleBase_Tools::setSpinValue(mySpinBox, aRef->value()); }