Skip to content

Commit e3dc567

Browse files
committed
Merge branch 'master' of https://github.com/cbhaley/calibre
2 parents 645b216 + 9e1faa1 commit e3dc567

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/calibre/gui2/tag_browser

src/calibre/gui2/tag_browser/view.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ def make_icon_name(key, index):
704704
self._model.set_value_icon(key, TEMPLATE_ICON_INDICATOR, d.rule[2], False)
705705
self.recount()
706706
return
707-
(icon_file_name, for_children) = extra
707+
(icon_file_name, for_children) = extra if extra is not None else (None, None)
708708
item_val, desired_file_name = make_icon_name(key, index)
709709
if icon_file_name is None:
710710
# User wants to specify a specific icon
@@ -1259,7 +1259,7 @@ def get_rule_data(tag, key):
12591259
return name, icon_name, for_child
12601260

12611261
name, icon_name, for_child = get_rule_data(tag, key)
1262-
for_name = name or _('this value')
1262+
for_name = (name or _('this value')).replace('&', '&&')
12631263
im = cm.addMenu(_('Manage icon for {}').format(for_name))
12641264
if name is not None:
12651265
im.addSection(_('Current value: {}').format(name))

0 commit comments

Comments
 (0)