Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ def nextCheckState(self):
"""
# Qt tri-state logic is a little odd. The default behaviour is to go from unchecked
# to partially checked. We want it to go from unchecked to checked
if self.ui.checkbox.checkState() == QtCore.Qt.CheckState.Checked:
next_state = QtCore.Qt.CheckState.Unchecked
if self.ui.checkbox.checkState() == QtCore.Qt.Checked:
next_state = QtCore.Qt.Unchecked
else:
next_state = QtCore.Qt.CheckState.Checked
next_state = QtCore.Qt.Checked
self.ui.checkbox.setCheckState(next_state)
self._tree_node.set_check_state(next_state)

Expand Down