From 82fd34f1680893f3d8cafbe128ed4758f2fb8ff9 Mon Sep 17 00:00:00 2001 From: Joey de l'Arago Date: Thu, 8 Dec 2022 09:56:36 +0100 Subject: [PATCH] Fix same property value check. CURA-9793 --- resources/qml/Widgets/SingleSettingTextField.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/qml/Widgets/SingleSettingTextField.qml b/resources/qml/Widgets/SingleSettingTextField.qml index 1a8d7ae703..7dde652263 100644 --- a/resources/qml/Widgets/SingleSettingTextField.qml +++ b/resources/qml/Widgets/SingleSettingTextField.qml @@ -87,7 +87,7 @@ UM.TextField function parseValueUpdateSetting() { - if (propertyProvider.properties.value == text || parseInt(propertyProvide.properties.value) == parseInt(text)) + if (propertyProvider.properties.value == text || (parseFloat(propertyProvider.properties.value) == parseFloat(text) && !isNan(parseFloat(text)))) { // Don't set the property value from the control. It already has the same value return