summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-07-05 02:16:10 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-07-05 02:16:10 (GMT)
commit325691bfdbf394c6a7c19ef2c3cb6db9140b3e01 (patch)
tree40a1980a9202762e267a83ac2016072be55fec76
parentdac42b0d66eda9a7101847ced61c118024ef9c6d (diff)
downloadQt-325691bfdbf394c6a7c19ef2c3cb6db9140b3e01.zip
Qt-325691bfdbf394c6a7c19ef2c3cb6db9140b3e01.tar.gz
Qt-325691bfdbf394c6a7c19ef2c3cb6db9140b3e01.tar.bz2
Work around QTBUG-11929
-rw-r--r--src/declarative/qml/qdeclarativecomponent.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativecomponent.cpp b/src/declarative/qml/qdeclarativecomponent.cpp
index 9d3032c..5617ae9 100644
--- a/src/declarative/qml/qdeclarativecomponent.cpp
+++ b/src/declarative/qml/qdeclarativecomponent.cpp
@@ -448,7 +448,8 @@ void QDeclarativeComponent::loadUrl(const QUrl &url)
d->clear();
- if (url.isRelative() && !url.isEmpty())
+ if ((url.isRelative() && !url.isEmpty())
+ || url.scheme() == QLatin1String("file")) // Workaround QTBUG-11929
d->url = d->engine->baseUrl().resolved(url);
else
d->url = url;