From 56466e61d3f3b9ba8f34d0ca95bc426032888477 Mon Sep 17 00:00:00 2001 From: Alexander Ivash Date: Fri, 1 Jun 2018 18:20:47 +0300 Subject: [PATCH] fix binding loops disallowing to increment/decrement spinbox value under certain conditions --- interface/resources/qml/controls-uit/SpinBox.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interface/resources/qml/controls-uit/SpinBox.qml b/interface/resources/qml/controls-uit/SpinBox.qml index 7a1d064191..a943b82a23 100644 --- a/interface/resources/qml/controls-uit/SpinBox.qml +++ b/interface/resources/qml/controls-uit/SpinBox.qml @@ -57,7 +57,8 @@ SpinBox { onValueChanged: realValue = value/factor stepSize: realStepSize*factor - value: realValue*factor + value: Math.round(realValue*factor) + to : realTo*factor from : realFrom*factor