Skip to content

Commit

Permalink
Fix checkbox editor widget value comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jun 24, 2023
1 parent 3dfc6f5 commit 256868c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qml/editorwidgets/CheckBox.qml
Expand Up @@ -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']
}
Expand Down

1 comment on commit 256868c

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.