Skip to content

Commit

Permalink
Fix #1950495 [Virtual library: Ampersands render incorrectly in conte…
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Nov 11, 2021
1 parent 77e087f commit 9b2c742
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/calibre/gui2/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,9 +537,10 @@ def contextMenuEvent(self, ev):
if i > -1:
vl = str(self.tabData(i) or '')
if vl:
vln = vl.replace('&', '&&')
m.addSeparator()
m.addAction(_('Edit "%s"') % vl, partial(self.gui.do_create_edit, name=vl))
m.addAction(_('Delete "%s"') % vl, partial(self.gui.remove_vl_triggered, name=vl))
m.addAction(_('Edit "%s"') % vln, partial(self.gui.do_create_edit, name=vl))
m.addAction(_('Delete "%s"') % vln, partial(self.gui.remove_vl_triggered, name=vl))
m.exec_(ev.globalPos())

def sort_alphabetically(self):
Expand Down

0 comments on commit 9b2c742

Please sign in to comment.