Yet another checkState() fix

This commit is contained in:
Kovid Goyal 2022-07-16 08:12:59 +05:30
parent 3f4c4b318a
commit d4cb45585f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -455,7 +455,7 @@ class CheckLibraryDialog(QDialog):
attr = check[0]
fixable = check[3]
tl = self.top_level_items[attr]
if fixable and tl.checkState(1):
if fixable and tl.checkState(1) == Qt.CheckState.Checked:
func = getattr(self, 'fix_' + attr, None)
if func is not None and callable(func):
func()