summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlengine.cpp
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-10-21 05:33:54 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-10-21 05:33:54 (GMT)
commitc1a241652c587e6da92bf853608aed37938e1e48 (patch)
treec6be1ab49d096675db3a15c4df342c9e6e0e8f22 /src/declarative/qml/qmlengine.cpp
parente49ed8f8b337582e8b9a2e312a6455445208c0f7 (diff)
downloadQt-c1a241652c587e6da92bf853608aed37938e1e48.zip
Qt-c1a241652c587e6da92bf853608aed37938e1e48.tar.gz
Qt-c1a241652c587e6da92bf853608aed37938e1e48.tar.bz2
Fix breakout type resolution
Didn't seem to resolve an empty URL correctly. Task-number:QT-2339
Diffstat (limited to 'src/declarative/qml/qmlengine.cpp')
-rw-r--r--src/declarative/qml/qmlengine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlengine.cpp b/src/declarative/qml/qmlengine.cpp
index 3cd66aa..7fe8ca2 100644
--- a/src/declarative/qml/qmlengine.cpp
+++ b/src/declarative/qml/qmlengine.cpp
@@ -680,6 +680,8 @@ QScriptValue QmlEnginePrivate::createQmlObject(QScriptContext *ctxt, QScriptEngi
QUrl url;
if(ctxt->argumentCount() > 2)
url = QUrl(ctxt->argument(2).toString());
+ else
+ url = QUrl(QLatin1String("DynamicQML"));
QObject *parentArg = activeEnginePriv->objectClass->toQObject(ctxt->argument(1));
QmlContext *qmlCtxt = qmlContext(parentArg);
url = qmlCtxt->resolvedUrl(url);