mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Use fromLocalFile with QUrl.
This commit is contained in:
parent
7eba89285e
commit
d6984b83c3
@ -112,7 +112,7 @@ class PDFWriter(QObject):
|
|||||||
self.logger.debug('Processing %s...' % item)
|
self.logger.debug('Processing %s...' % item)
|
||||||
|
|
||||||
#self.view.load(QUrl(item))
|
#self.view.load(QUrl(item))
|
||||||
self.view.setHtml(open(item, 'r+b').read().decode('utf-8'), QUrl(item))
|
self.view.setHtml(open(item, 'r+b').read().decode('utf-8'), QUrl.fromLocalFile(item))
|
||||||
|
|
||||||
def _render_html(self, ok):
|
def _render_html(self, ok):
|
||||||
if ok:
|
if ok:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user