qml runtime: don't assume http by default

Avoid doing network operations unless a network-specific scheme is given.

Task-number: QTBUG-57870
Change-Id: I1387603da5b8325232bef27b0ed45483a0ae30a4
Reviewed-by: David Faure <david.faure@kdab.com>
This commit is contained in:
Shawn Rutledge 2017-03-15 11:16:20 +01:00
parent 8469f0501d
commit d88164fdbc
1 changed files with 1 additions and 1 deletions

View File

@ -567,7 +567,7 @@ int main(int argc, char *argv[])
loadDummyDataFiles(e, dummyDir);
for (const QString &path : qAsConst(files)) {
QUrl url = QUrl::fromUserInput(path, QDir::currentPath());
QUrl url = QUrl::fromUserInput(path, QDir::currentPath(), QUrl::AssumeLocalFile);
if (verboseMode)
printf("qml: loading %s\n", qPrintable(url.toString()));
QByteArray strippedFile;