Commit d65af80c authored by Marco Bubke's avatar Marco Bubke Committed by Kai Koehne
Browse files

Use a new context for every new created component.

This is fixing many crashes but maybe not anymore in line with the qml

Task-Number: BAUHAUS-622
Reviewed-by: kkoehne
parent 9d34246a
......@@ -176,7 +176,7 @@ QObject *NodeMetaInfo::createInstance(QDeclarativeContext *context) const
// qml component
// TODO: This is maybe expensive ...
QDeclarativeComponent component(context->engine(), QUrl::fromLocalFile(m_data->qmlFile));
object = component.create(context);
object = component.create(new QDeclarativeContext(context));
} else {
// primitive
object = QDeclarativeMetaType::qmlType(typeName().toAscii(), minorVersion(), majorVersion())->create();
Supports Markdown
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