Showing the changes to interface/src/scripting/WebWindowClass.cpp (1 of 1 file). Show all
Unified · Split
| @@ -79,7 +79,7 @@ WebWindowClass::WebWindowClass(const QString& title, const QString& url, int wid · 78 unmodified lines | ||
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | _webView->setPage(new DataWebPage()); |
| 82 | − if (!url.startsWith("http")) { | |
| 82 | + if (!url.startsWith("http") && !url.startsWith("file://")) { | |
| 83 | 83 | _webView->setUrl(QUrl::fromLocalFile(url)); |
| 84 | 84 | } else { |
| 85 | 85 | _webView->setUrl(url); |