This commit is contained in:
Kovid Goyal 2022-11-05 18:51:53 +05:30
commit 4db3499b67
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -977,7 +977,7 @@ class TagsView(QTreeView): # {{{
self.context_menu.addAction(_('Manage Saved searches'), self.context_menu.addAction(_('Manage Saved searches'),
partial(self.context_menu_handler, action='manage_searches', partial(self.context_menu_handler, action='manage_searches',
category=tag.name if tag else None)) category=tag.name if tag else None))
elif key == 'formats': elif key == 'formats' and tag is not None:
self.context_menu.addAction(_('Remove the {} format from selected books').format(tag.name), partial( self.context_menu.addAction(_('Remove the {} format from selected books').format(tag.name), partial(
self.context_menu_handler, action='remove_format', key=tag.name)) self.context_menu_handler, action='remove_format', key=tag.name))