mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 13:28:16 +02:00
Add comment
This commit is contained in:
parent
b81cdf49ef
commit
2d786451c2
1 changed files with 1 additions and 0 deletions
|
@ -61,6 +61,7 @@ QVariantMap QmlWindowClass::parseArguments(QScriptContext* context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
QUrl url { properties[SOURCE_PROPERTY].toString() };
|
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" &&
|
if (url.scheme() != "http" && url.scheme() != "https" && url.scheme() != "file" && url.scheme() != "about" &&
|
||||||
url.scheme() != "atp" && url.scheme() != "qrc") {
|
url.scheme() != "atp" && url.scheme() != "qrc") {
|
||||||
properties[SOURCE_PROPERTY] = QUrl::fromLocalFile(url.toString()).toString();
|
properties[SOURCE_PROPERTY] = QUrl::fromLocalFile(url.toString()).toString();
|
||||||
|
|
Loading…
Reference in a new issue