mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 13:12:52 +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() };
|
||||
// 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();
|
||||
|
|
Loading…
Reference in a new issue