In the tag browser, ensure that "Change category icon" appears only on top-level nodes. This avoids confusion about what which items are affected in hierarchical categories.

This commit is contained in:
Charles Haley 2018-06-05 16:35:52 +02:00
parent 7df3515b10
commit 8c56e6c291

View File

@ -650,6 +650,7 @@ class TagsView(QTreeView): # {{{
partial(self.context_menu_handler, action='manage_searches',
category=tag.name if tag else None))
if tag is None:
self.context_menu.addSeparator()
self.context_menu.addAction(_('Change category icon'),
partial(self.context_menu_handler, action='set_icon', key=key))