mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Bug #2098133: Setting custom icon for category doesn't work
This commit is contained in:
parent
2787b65310
commit
f92971b513
@ -713,7 +713,8 @@ class TagsView(QTreeView): # {{{
|
|||||||
self.recount()
|
self.recount()
|
||||||
return
|
return
|
||||||
icon_file_name, for_children = extra if extra is not None else (None, None)
|
icon_file_name, for_children = extra if extra is not None else (None, None)
|
||||||
item_val, desired_file_name = make_icon_name(key, index, self._model.get_node(index).tag.id)
|
item_val, desired_file_name = make_icon_name(key, index,
|
||||||
|
None if index is None else self._model.get_node(index).tag.id)
|
||||||
if icon_file_name is None:
|
if icon_file_name is None:
|
||||||
# User wants to specify a specific icon
|
# User wants to specify a specific icon
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user