mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
5aa57e77ca
commit
2483afa95e
@ -508,7 +508,7 @@ class DocumentView(QWebView): # {{{
|
|||||||
self.to_bottom = False
|
self.to_bottom = False
|
||||||
self.document = Document(self.shortcuts, parent=self,
|
self.document = Document(self.shortcuts, parent=self,
|
||||||
debug_javascript=debug_javascript)
|
debug_javascript=debug_javascript)
|
||||||
self.footnotes = Footnotes(self.document)
|
self.footnotes = Footnotes(self)
|
||||||
self.setPage(self.document)
|
self.setPage(self.document)
|
||||||
self.inspector = WebInspector(self, self.document)
|
self.inspector = WebInspector(self, self.document)
|
||||||
self.manager = None
|
self.manager = None
|
||||||
@ -1311,8 +1311,6 @@ class DocumentView(QWebView): # {{{
|
|||||||
url = self.document.mainFrame().hitTestContent(ev.pos()).linkUrl()
|
url = self.document.mainFrame().hitTestContent(ev.pos()).linkUrl()
|
||||||
if url.isValid():
|
if url.isValid():
|
||||||
fd = self.footnotes.get_footnote_data(url)
|
fd = self.footnotes.get_footnote_data(url)
|
||||||
if fd is not None:
|
|
||||||
print (fd)
|
|
||||||
return
|
return
|
||||||
opos = self.document.ypos
|
opos = self.document.ypos
|
||||||
if self.manager is not None:
|
if self.manager is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user