E-book viewer: Fix external links not working in the footnote popup panel

This commit is contained in:
Kovid Goyal 2017-06-05 09:11:19 +05:30
parent 01085fc7d2
commit ae7ec71db0
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -863,6 +863,9 @@ class DocumentView(QWebView): # {{{
self.manager.link_clicked(url)
def footnote_link_clicked(self, qurl):
if qurl.scheme() in ('http', 'https'):
self.link_clicked(qurl)
return
path = qurl.toLocalFile()
self.link_clicked(self.as_url(path))