Turn off multiple selection in the icon viewer. The underlying mechanisms can't handle it yet.

This commit is contained in:
Charles Haley 2025-01-24 02:49:33 +00:00
parent 8281d102fd
commit ac1f1c5b6c

View File

@ -113,6 +113,7 @@ class TbIconRulesTab(ConfigTabWidget, Ui_Form):
('', _('Category'), _('Value'), _('Icon file or template'),_('For children'))) ('', _('Category'), _('Value'), _('Icon file or template'),_('For children')))
self.rules_table.setContextMenuPolicy(Qt.ContextMenuPolicy.CustomContextMenu) self.rules_table.setContextMenuPolicy(Qt.ContextMenuPolicy.CustomContextMenu)
self.rules_table.customContextMenuRequested.connect(self.show_context_menu) self.rules_table.customContextMenuRequested.connect(self.show_context_menu)
self.rules_table.setSelectionMode(QAbstractItemView.SelectionMode.SingleSelection)
for i in range(0, HEADER_SECTION_COUNT): for i in range(0, HEADER_SECTION_COUNT):
item = self.rules_table.horizontalHeaderItem(i) item = self.rules_table.horizontalHeaderItem(i)