Commit 06b3ce96 authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner.NodeInstances: Remove superfluous context

parent 1fe608e1
......@@ -742,11 +742,9 @@ void tweakObjects(QObject *object)
QObject *createComponent(const QString &componentPath, QDeclarativeContext *context)
{
QDeclarativeComponent component(context->engine(), QUrl::fromLocalFile(componentPath));
QDeclarativeContext *newContext = new QDeclarativeContext(context);
QObject *object = component.beginCreate(newContext);
QObject *object = component.beginCreate(context);
tweakObjects(object);
component.completeCreate();
newContext->setParent(object);
return object;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment