mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Only add the 'Search using saved search expression' to context menus for saved searches.
This commit is contained in:
parent
6fc7d62f38
commit
ecbe3b227a
@ -760,11 +760,11 @@ class TagsView(QTreeView): # {{{
|
||||
partial(self.context_menu_handler, action='search',
|
||||
search_state=TAG_SEARCH_STATES['mark_minus'],
|
||||
index=index))
|
||||
if key == 'search':
|
||||
search_submenu.addAction(self.search_copy_icon,
|
||||
_('Search using saved search expression'),
|
||||
partial(self.context_menu_handler, action='raw_search',
|
||||
key=tag.name))
|
||||
|
||||
self.context_menu.addSeparator()
|
||||
elif key.startswith('@') and not item.is_gst:
|
||||
if item.can_be_edited:
|
||||
|
Loading…
x
Reference in New Issue
Block a user