mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 18:45:34 +01:00
Use fromLocalFile with QUrl.
This commit is contained in:
parent
7eba89285e
commit
d6984b83c3
1 changed files with 1 additions and 1 deletions
|
|
@ -112,7 +112,7 @@ def _render_next(self):
|
|||
self.logger.debug('Processing %s...' % 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):
|
||||
if ok:
|
||||
|
|
|
|||
Loading…
Reference in a new issue