From 986feb310f50417b04ddd118ee42d6d2194e0f89 Mon Sep 17 00:00:00 2001 From: sbh Date: Thu, 16 Apr 2015 20:30:00 +0300 Subject: [PATCH] Block signals when adding parameters --- src/ModuleBase/ModuleBase_WidgetDoubleValue.cpp | 2 ++ 1 file changed, 2 insertions(+) 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()); } -- 2.39.2