mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -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
|
||||
|
||||
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))
|
||||
if name is not None:
|
||||
im.addSection(_('Current value: {}').format(name))
|
||||
|
Loading…
x
Reference in New Issue
Block a user