mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
90a0a33723
commit
3a4787577b
@ -609,7 +609,7 @@ class HTMLDisplay(QTextBrowser):
|
|||||||
r = QIcon.icon_as_png(qurl.path().lstrip('/'), as_bytearray=True)
|
r = QIcon.icon_as_png(qurl.path().lstrip('/'), as_bytearray=True)
|
||||||
self.document().addResource(rtype, qurl, r)
|
self.document().addResource(rtype, qurl, r)
|
||||||
return r
|
return r
|
||||||
elif self.notes_resource_scheme and qurl.scheme() == self.notes_resource_scheme and int(rtype) == int(QTextDocument.ResourceType.ImageResource):
|
if self.notes_resource_scheme and qurl.scheme() == self.notes_resource_scheme and int(rtype) == int(QTextDocument.ResourceType.ImageResource):
|
||||||
from calibre.gui2.ui import get_gui
|
from calibre.gui2.ui import get_gui
|
||||||
gui = get_gui()
|
gui = get_gui()
|
||||||
if gui is not None:
|
if gui is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user