mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1950495 [Virtual library: Ampersands render incorrectly in context menu](https://bugs.launchpad.net/calibre/+bug/1950495)
This commit is contained in:
parent
77e087f52f
commit
9b2c742341
@ -537,9 +537,10 @@ class VLTabs(QTabBar): # {{{
|
|||||||
if i > -1:
|
if i > -1:
|
||||||
vl = str(self.tabData(i) or '')
|
vl = str(self.tabData(i) or '')
|
||||||
if vl:
|
if vl:
|
||||||
|
vln = vl.replace('&', '&&')
|
||||||
m.addSeparator()
|
m.addSeparator()
|
||||||
m.addAction(_('Edit "%s"') % vl, partial(self.gui.do_create_edit, name=vl))
|
m.addAction(_('Edit "%s"') % vln, partial(self.gui.do_create_edit, name=vl))
|
||||||
m.addAction(_('Delete "%s"') % vl, partial(self.gui.remove_vl_triggered, name=vl))
|
m.addAction(_('Delete "%s"') % vln, partial(self.gui.remove_vl_triggered, name=vl))
|
||||||
m.exec_(ev.globalPos())
|
m.exec_(ev.globalPos())
|
||||||
|
|
||||||
def sort_alphabetically(self):
|
def sort_alphabetically(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user