Skip to content
Snippets Groups Projects
Commit 06b3ce96 authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner.NodeInstances: Remove superfluous context

parent 1fe608e1
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment