Book details panel: Fix copying Path link by right clicking on it not working. Fixes #1437756 [[Enhancement] Option to create and place a link to a selected book.](https://bugs.launchpad.net/calibre/+bug/1437756)

This commit is contained in:
Kovid Goyal 2015-03-30 18:39:45 +05:30
parent 3536596399
commit 17f6a7878f

View File

@ -449,6 +449,8 @@ class BookInfo(QWebView):
]: ]:
ac = getattr(self, '%s_link_action'%a) ac = getattr(self, '%s_link_action'%a)
ac.current_url = url ac.current_url = url
if url.startswith('path:'):
ac.current_url = el.attribute('title')
ac.setText(t) ac.setText(t)
menu.addAction(ac) menu.addAction(ac)
if author is not None: if author is not None: