mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
I broke publisher. Fixed.
This commit is contained in:
parent
c3ccacbf57
commit
f55c0547a7
@ -83,11 +83,13 @@ class TagBrowserMixin: # {{{
|
|||||||
model = self.library_view.model()
|
model = self.library_view.model()
|
||||||
if col in range(0, len(model.column_map)):
|
if col in range(0, len(model.column_map)):
|
||||||
current_cat = model.column_map[col]
|
current_cat = model.column_map[col]
|
||||||
if current_cat in ('authors', 'series' 'publishers', 'tags') or current_cat in cust_cats:
|
if current_cat in ('authors', 'series', 'publisher', 'tags') or current_cat in cust_cats:
|
||||||
m.addAction(get_icon(current_cat), cat_display_name(current_cat),
|
m.addAction(get_icon(current_cat), cat_display_name(current_cat),
|
||||||
menu_func(current_cat, None))
|
menu_func(current_cat, None))
|
||||||
proxy_md = db.new_api.get_proxy_metadata(db.id(idx.row()))
|
proxy_md = db.new_api.get_proxy_metadata(db.id(idx.row()))
|
||||||
items = proxy_md.get(current_cat)
|
items = proxy_md.get(current_cat)
|
||||||
|
if isinstance(items, str):
|
||||||
|
items = list((items,))
|
||||||
if items:
|
if items:
|
||||||
if len(items) > 4:
|
if len(items) > 4:
|
||||||
im = QMenu(_('Items on book'), m)
|
im = QMenu(_('Items on book'), m)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user