Fix #1900221 [[Enhancement] Add separator to Tag browser context menu](https://bugs.launchpad.net/calibre/+bug/1900221)

This commit is contained in:
Kovid Goyal 2020-10-17 12:42:38 +05:30
parent b0b3effc40
commit 3686dc929c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -701,6 +701,7 @@ class TagsView(QTreeView): # {{{
key=key, index=tag_item)) key=key, index=tag_item))
if tag.is_searchable: if tag.is_searchable:
# Add the search for value items. All leaf nodes are searchable # Add the search for value items. All leaf nodes are searchable
self.context_menu.addSeparator()
self.context_menu.addAction(self.search_icon, self.context_menu.addAction(self.search_icon,
_('Search for %s')%display_name(tag), _('Search for %s')%display_name(tag),
partial(self.context_menu_handler, action='search', partial(self.context_menu_handler, action='search',