From 3f4c4b318a625d4c21eae2670a6b706979907068 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 16 Jul 2022 08:07:10 +0530 Subject: [PATCH] Another use of checkState() that needs to be changed --- src/calibre/gui2/convert/txt_input.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/convert/txt_input.py b/src/calibre/gui2/convert/txt_input.py index 920d732453..fcbf3f3fe4 100644 --- a/src/calibre/gui2/convert/txt_input.py +++ b/src/calibre/gui2/convert/txt_input.py @@ -47,7 +47,7 @@ class PluginWidget(Widget, Ui_Form): def get_value_handler(self, g): if g is not self.opt_markdown_extensions: return Widget.get_value_handler(self, g) - return ', '.join(str(i.data(Qt.ItemDataRole.UserRole) or '') for i in itervalues(self.md_map) if i.checkState()) + return ', '.join(str(i.data(Qt.ItemDataRole.UserRole) or '') for i in self.md_map.values() if i.checkState() == Qt.CheckState.Checked) def connect_gui_obj_handler(self, g, f): if g is not self.opt_markdown_extensions: