mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Turn off multiple selection in the icon viewer. The underlying mechanisms can't handle it yet.
This commit is contained in:
parent
8281d102fd
commit
ac1f1c5b6c
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user