mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/cbhaley/calibre
Fixes #2049428 [Lookup name #readstatus doesn't have a link map](https://bugs.launchpad.net/calibre/+bug/2049428)
This commit is contained in:
commit
d4d45eb5b9
@ -242,7 +242,8 @@ class TagTreeItem: # {{{
|
||||
tt.append(_('Number of books: %s') % self.item_count)
|
||||
from calibre.gui2.ui import get_gui
|
||||
db = get_gui().current_db.new_api
|
||||
link = db.get_link_map(tag.category).get(tag.original_name)
|
||||
link = (None if not db.has_link_map(tag.category)
|
||||
else db.get_link_map(tag.category).get(tag.original_name))
|
||||
if link:
|
||||
tt.append(_('Link: %s') % link)
|
||||
return '\n'.join(tt)
|
||||
|
Loading…
x
Reference in New Issue
Block a user