more pyqt6 enum goodness

This commit is contained in:
Kovid Goyal 2022-06-28 12:35:41 +05:30
parent a301e71328
commit 1d67f1e923
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -676,7 +676,7 @@ class TemplateDialog(QDialog, Ui_TemplateDialog):
self.last_text = cur_text
self.highlighter.regenerate_paren_positions()
self.text_cursor_changed()
if self.break_box.checkState() == 0:
if self.break_box.checkState() == Qt.CheckState.Unchecked:
self.display_values(cur_text)
def display_values(self, txt):