This commit is contained in:
Kovid Goyal 2023-03-06 21:29:48 +05:30
commit a31b82ddad
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

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)