mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Escape ampersands in tag browser icon value strings.
This commit is contained in:
parent
645b2161a0
commit
c7b54fccf2
@ -1259,7 +1259,7 @@ class TagsView(QTreeView): # {{{
|
|||||||
return name, icon_name, for_child
|
return name, icon_name, for_child
|
||||||
|
|
||||||
name, icon_name, for_child = get_rule_data(tag, key)
|
name, icon_name, for_child = get_rule_data(tag, key)
|
||||||
for_name = name or _('this value')
|
for_name = (name or _('this value')).replace('&', '&&')
|
||||||
im = cm.addMenu(_('Manage icon for {}').format(for_name))
|
im = cm.addMenu(_('Manage icon for {}').format(for_name))
|
||||||
if name is not None:
|
if name is not None:
|
||||||
im.addSection(_('Current value: {}').format(name))
|
im.addSection(_('Current value: {}').format(name))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user