mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
148a0792a2
@ -57,8 +57,7 @@ class TagBrowserMixin: # {{{
|
||||
return ''
|
||||
|
||||
def get_icon(cat_name):
|
||||
from calibre.gui2.ui import get_gui
|
||||
icon = get_gui().tags_view.model().category_custom_icons.get(cat_name, None)
|
||||
icon = self.tags_view.model().category_custom_icons.get(cat_name, None)
|
||||
if not icon:
|
||||
from calibre.library.field_metadata import category_icon_map
|
||||
icon = QIcon.ic(category_icon_map.get(cat_name) or category_icon_map['custom:'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user