Fixed an issue in the HTML previewer (QWebEngine variant) related to unnamed documents.

Sun, 08 Jan 2017 17:44:07 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 08 Jan 2017 17:44:07 +0100
changeset 5405
2129035cd437
parent 5404
6b19ad5470a3
child 5406
8d09a23a8fdd

Fixed an issue in the HTML previewer (QWebEngine variant) related to unnamed documents.

UI/Previewers/PreviewerHTML.py file | annotate | diff | comparison | revisions
--- a/UI/Previewers/PreviewerHTML.py	Sat Jan 07 19:35:40 2017 +0100
+++ b/UI/Previewers/PreviewerHTML.py	Sun Jan 08 17:44:07 2017 +0100
@@ -211,6 +211,8 @@
         else:
             self.previewView.page().loadFinished.connect(
                 self.__restoreScrollBarPositions)
+            if not filePath:
+                filePath = "/"
         self.previewView.setHtml(html, baseUrl=QUrl.fromLocalFile(filePath))
         if self.__previewedEditor:
             self.__previewedEditor.setFocus()

eric ide

mercurial