aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qml
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2017-03-15 11:16:20 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2017-03-15 12:43:58 +0000
commitd88164fdbcc5af073f6f3c9b067d0edb5fa0e6d2 (patch)
tree23a448dd94b7d650efa49d7fefbcd42bbc459893 /tools/qml
parent8469f0501d9c581a6b2fd2e380187a00b47c6f8d (diff)
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>
Diffstat (limited to 'tools/qml')
-rw-r--r--tools/qml/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qml/main.cpp b/tools/qml/main.cpp
index e8a506264c..8af9a1de41 100644
--- a/tools/qml/main.cpp
+++ b/tools/qml/main.cpp
@@ -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;