Fix using an integer constant for Qt.CheckState.Checked

This commit is contained in:
Charles Haley 2023-03-06 15:43:59 +00:00
parent 4292dcbdda
commit 4a3f3a6562

View File

@ -491,7 +491,7 @@ class CreateCustomColumn(QDialog):
self.bool_button_group.setFocusProxy(button)
def composite_show_in_comments_clicked(self, state):
if state == 2: # Qt.CheckState.Checked but passed as an int
if state == Qt.CheckState.Checked.value: # state is passed as an int
self.composite_sort_by.setEnabled(False)
self.composite_sort_by_label.setEnabled(False)
self.composite_make_category.setEnabled(False)