aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlcomponent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qml/qqmlcomponent.cpp')
-rw-r--r--src/qml/qml/qqmlcomponent.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlcomponent.cpp b/src/qml/qml/qqmlcomponent.cpp
index 898a00a9bb..bf87a9dd2d 100644
--- a/src/qml/qml/qqmlcomponent.cpp
+++ b/src/qml/qml/qqmlcomponent.cpp
@@ -862,7 +862,7 @@ QQmlComponentPrivate::beginCreate(QQmlContextData *context)
enginePriv->referenceScarceResources();
QObject *rv = 0;
if (enginePriv->useNewCompiler) {
- state.creator = new QmlObjectCreator(context, cc);
+ state.creator = new QmlObjectCreator(context, cc, creationContext);
rv = state.creator->create(start);
if (!rv)
state.errors = state.creator->errors;
@@ -1057,7 +1057,7 @@ void QQmlComponent::create(QQmlIncubator &incubator, QQmlContext *context,
p->compiledData = d->cc;
p->compiledData->addref();
if (enginePriv->useNewCompiler) {
- p->creator.reset(new QmlObjectCreator(contextData, d->cc));
+ p->creator.reset(new QmlObjectCreator(contextData, d->cc, d->creationContext));
p->subComponentToCreate = d->start;
} else
p->vme.init(contextData, d->cc, d->start, d->creationContext);