mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
E-book viewer: Fix a regression that caused clicking links in the footnote popup window to stop working
This commit is contained in:
parent
c36d652534
commit
89ab75ce4b
@ -877,6 +877,10 @@ class DocumentView(QWebView): # {{{
|
|||||||
if self.manager is not None:
|
if self.manager is not None:
|
||||||
self.manager.link_clicked(url)
|
self.manager.link_clicked(url)
|
||||||
|
|
||||||
|
def footnote_link_clicked(self, qurl):
|
||||||
|
path = qurl.toLocalFile()
|
||||||
|
self.link_clicked(self.as_url(path))
|
||||||
|
|
||||||
def sizeHint(self):
|
def sizeHint(self):
|
||||||
return self._size_hint
|
return self._size_hint
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ class Footnotes(object):
|
|||||||
def set_footnotes_view(self, fv):
|
def set_footnotes_view(self, fv):
|
||||||
self.footnotes_view = fv
|
self.footnotes_view = fv
|
||||||
self.clone_settings()
|
self.clone_settings()
|
||||||
fv.page().linkClicked.connect(self.view.link_clicked)
|
fv.page().linkClicked.connect(self.view.footnote_link_clicked)
|
||||||
fv.page().js_loader = self.view.document.js_loader
|
fv.page().js_loader = self.view.document.js_loader
|
||||||
|
|
||||||
def clone_settings(self):
|
def clone_settings(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user