History

Fixing the loading of local HTML so it works on both OSX and win32

Bradley Austin Davis committed 11 years ago

Commit fc825f61 parent a8d343b1 file · +1 −1Browse files

Showing the changes to interface/src/scripting/WebWindowClass.cpp (1 of 1 file). Show all

Unified · Split

interface/src/scripting/WebWindowClass.cpp+1−1
@@ -79,7 +79,7 @@ WebWindowClass::WebWindowClass(const QString& title, const QString& url, int wid · 78 unmodified lines
7979 }
8080
8181 _webView->setPage(new DataWebPage());
82− if (!url.startsWith("http")) {
82+ if (!url.startsWith("http") && !url.startsWith("file://")) {
8383 _webView->setUrl(QUrl::fromLocalFile(url));
8484 } else {
8585 _webView->setUrl(url);