From ae7ec71db028c00dd50c280584ca67451c9987c9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 5 Jun 2017 09:11:19 +0530 Subject: [PATCH] E-book viewer: Fix external links not working in the footnote popup panel --- src/calibre/gui2/viewer/documentview.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/gui2/viewer/documentview.py b/src/calibre/gui2/viewer/documentview.py index b0656af272..574dd6c769 100644 --- a/src/calibre/gui2/viewer/documentview.py +++ b/src/calibre/gui2/viewer/documentview.py @@ -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))