summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-01-13 01:11:07 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-01-13 01:11:07 (GMT)
commitf285a9ec384d880e57f1ea26ccc547043e244bbd (patch)
treea2b8f0a9597f629ed5f325f16447190d25c99e7a /src
parentef37460d0814879f5022cbb9692f3eaa49d9c8c3 (diff)
downloadQt-f285a9ec384d880e57f1ea26ccc547043e244bbd.zip
Qt-f285a9ec384d880e57f1ea26ccc547043e244bbd.tar.gz
Qt-f285a9ec384d880e57f1ea26ccc547043e244bbd.tar.bz2
Fix and test version 0.0 installed imports.
Diffstat (limited to 'src')
-rw-r--r--src/declarative/qml/qmlengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlengine.cpp b/src/declarative/qml/qmlengine.cpp
index 8d78cc7..cdae172 100644
--- a/src/declarative/qml/qmlengine.cpp
+++ b/src/declarative/qml/qmlengine.cpp
@@ -1112,7 +1112,7 @@ struct QmlEnginePrivate::ImportedNamespace {
}
QUrl url = QUrl(urls.at(i) + QLatin1Char('/') + QString::fromUtf8(type) + QLatin1String(".qml"));
QString qmldircontent = qmlDirContent.at(i);
- if (vmaj || vmin || !qmldircontent.isEmpty()) {
+ if (vmaj>=0 || !qmldircontent.isEmpty()) {
// Check version file - XXX cache these in QmlEngine!
if (qmldircontent.isEmpty()) {
QFile qmldir(toLocalFileOrQrc(QUrl(urls.at(i)+QLatin1String("/qmldir"))));