Book details: Fix Manage authors via context menu not working

This commit is contained in:
Kovid Goyal 2023-11-08 15:00:04 +05:30
parent 8ea5281a47
commit e7abf626bc
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -529,7 +529,7 @@ class TagBrowserMixin: # {{{
db = self.library_view.model().db db = self.library_view.model().db
get_authors_func = partial(self.get_book_ids_in_vl_or_selection, db=db, category='authors') get_authors_func = partial(self.get_book_ids_in_vl_or_selection, db=db, category='authors')
if lookup_author: if lookup_author:
for t in get_authors_func(use_virtual_library=False): for t in get_authors_func(None):
if t[1] == id_: if t[1] == id_:
id_ = t[0] id_ = t[0]
break break