From 2d786451c2a8be3221b9f4c6c618a0b0a4ca10b8 Mon Sep 17 00:00:00 2001 From: Zach Fox Date: Mon, 11 Dec 2017 10:50:24 -0800 Subject: [PATCH] Add comment --- libraries/ui/src/QmlWindowClass.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/ui/src/QmlWindowClass.cpp b/libraries/ui/src/QmlWindowClass.cpp index 1758150e0a..90b91c5ec2 100644 --- a/libraries/ui/src/QmlWindowClass.cpp +++ b/libraries/ui/src/QmlWindowClass.cpp @@ -61,6 +61,7 @@ QVariantMap QmlWindowClass::parseArguments(QScriptContext* context) { } QUrl url { properties[SOURCE_PROPERTY].toString() }; + // If the passed URL doesn't correspond to a known scheme, assume it's a local file path if (url.scheme() != "http" && url.scheme() != "https" && url.scheme() != "file" && url.scheme() != "about" && url.scheme() != "atp" && url.scheme() != "qrc") { properties[SOURCE_PROPERTY] = QUrl::fromLocalFile(url.toString()).toString();