From c6893e197e1ad268523981cbdc92c9861b7953f9 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 9 Jul 2015 12:11:40 +0300 Subject: [PATCH] SetValue in ParamSpinBox has to be called in any case in order to initialize text --- src/ModuleBase/ModuleBase_Tools.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ModuleBase/ModuleBase_Tools.cpp b/src/ModuleBase/ModuleBase_Tools.cpp index b3cb302ba..4dbc9ee3b 100644 --- a/src/ModuleBase/ModuleBase_Tools.cpp +++ b/src/ModuleBase/ModuleBase_Tools.cpp @@ -134,8 +134,8 @@ void setSpinValue(QDoubleSpinBox* theSpin, double theValue) void setSpinValue(ModuleBase_ParamSpinBox* theSpin, double theValue) { - if (theSpin->value() == theValue) - return; + //if (theSpin->value() == theValue) + // return; bool isBlocked = theSpin->blockSignals(true); theSpin->setValue(theValue); theSpin->blockSignals(isBlocked); -- 2.39.2