mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #2008427 [another ampersand escape bug](https://bugs.launchpad.net/calibre/+bug/2008427)
This commit is contained in:
parent
ae7289b26c
commit
e5cbf7d340
@ -1008,11 +1008,12 @@ class TagsView(QTreeView): # {{{
|
||||
if tag is None:
|
||||
cm = self.context_menu
|
||||
cm.addSeparator()
|
||||
sm = cm.addAction(_('Change {} category icon').format(category),
|
||||
acategory = category.replace('&', '&&')
|
||||
sm = cm.addAction(_('Change {} category icon').format(acategory),
|
||||
partial(self.context_menu_handler, action='set_icon',
|
||||
key=key, category=category))
|
||||
sm.setIcon(QIcon.ic('icon_choose.png'))
|
||||
sm = cm.addAction(_('Restore {} category default icon').format(category),
|
||||
sm = cm.addAction(_('Restore {} category default icon').format(acategory),
|
||||
partial(self.context_menu_handler, action='clear_icon',
|
||||
key=key, category=category))
|
||||
sm.setIcon(QIcon.ic('edit-clear.png'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user