From 256868c6c0b98684ba383a26d9d41f1c456081b1 Mon Sep 17 00:00:00 2001 From: Mathieu Pellerin Date: Fri, 23 Jun 2023 08:49:49 +0700 Subject: [PATCH] Fix checkbox editor widget value comparison --- src/qml/editorwidgets/CheckBox.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qml/editorwidgets/CheckBox.qml b/src/qml/editorwidgets/CheckBox.qml index 841dbbb2c7..4aae5b4962 100644 --- a/src/qml/editorwidgets/CheckBox.qml +++ b/src/qml/editorwidgets/CheckBox.qml @@ -75,7 +75,7 @@ EditorWidgetBase { editedValue = !isNull ? !value : true } else { if (!isNull) { - editedValue = value === config['CheckedState'] ? config['UncheckedState'] : config['CheckedState'] + editedValue = value == config['CheckedState'] ? config['UncheckedState'] : config['CheckedState'] } else { editedValue = config['CheckedState'] }