mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Adding 'Copy Link' right click menu to links in book details.
This commit is contained in:
parent
3c54bc180f
commit
ff4de3f532
@ -484,7 +484,7 @@ class BookInfo(QWebView):
|
|||||||
menu.removeAction(action)
|
menu.removeAction(action)
|
||||||
if not r.isNull():
|
if not r.isNull():
|
||||||
if url.startswith('http'):
|
if url.startswith('http'):
|
||||||
for a, t in [('copy', _('Copy Link')),
|
for a, t in [('copy', _('&Copy Link')),
|
||||||
]:
|
]:
|
||||||
ac = getattr(self, '%s_link_action'%a)
|
ac = getattr(self, '%s_link_action'%a)
|
||||||
ac.current_url = url
|
ac.current_url = url
|
||||||
|
Loading…
x
Reference in New Issue
Block a user