mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'Allow_running_on_python_37' of https://github.com/madpilot78/calibre
This commit is contained in:
commit
34da60c843
@ -782,8 +782,9 @@ class TagsView(QTreeView): # {{{
|
|||||||
partial(self.context_menu_handler, action='search',
|
partial(self.context_menu_handler, action='search',
|
||||||
search_state=TAG_SEARCH_STATES['mark_plus'],
|
search_state=TAG_SEARCH_STATES['mark_plus'],
|
||||||
index=index))
|
index=index))
|
||||||
if add_child_search := (tag.is_hierarchical == '5state' and
|
add_child_search = (tag.is_hierarchical == '5state' and
|
||||||
len(tag_item.children)):
|
len(tag_item.children))
|
||||||
|
if add_child_search:
|
||||||
search_submenu.addAction(self.search_icon,
|
search_submenu.addAction(self.search_icon,
|
||||||
_('Search for %s and its children')%display_name(tag),
|
_('Search for %s and its children')%display_name(tag),
|
||||||
partial(self.context_menu_handler, action='search',
|
partial(self.context_menu_handler, action='search',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user