From ac1f1c5b6c87f6090f6c7975a30163829971f121 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Fri, 24 Jan 2025 02:49:33 +0000 Subject: [PATCH] Turn off multiple selection in the icon viewer. The underlying mechanisms can't handle it yet. --- src/calibre/gui2/preferences/look_feel_tabs/tb_icon_rules.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/preferences/look_feel_tabs/tb_icon_rules.py b/src/calibre/gui2/preferences/look_feel_tabs/tb_icon_rules.py index bb17bafdd7..0e35bfa260 100644 --- a/src/calibre/gui2/preferences/look_feel_tabs/tb_icon_rules.py +++ b/src/calibre/gui2/preferences/look_feel_tabs/tb_icon_rules.py @@ -113,6 +113,7 @@ class TbIconRulesTab(ConfigTabWidget, Ui_Form): ('', _('Category'), _('Value'), _('Icon file or template'),_('For children'))) self.rules_table.setContextMenuPolicy(Qt.ContextMenuPolicy.CustomContextMenu) self.rules_table.customContextMenuRequested.connect(self.show_context_menu) + self.rules_table.setSelectionMode(QAbstractItemView.SelectionMode.SingleSelection) for i in range(0, HEADER_SECTION_COUNT): item = self.rules_table.horizontalHeaderItem(i)