Commit 808094e9 authored by Tim Jenssen's avatar Tim Jenssen

QmlDesigner: avoid setContext warning if there is already one

Change-Id: I2d23f8f18cce11bdfbdcb4a8d9d6d99fec7d20e6
Reviewed-by: default avatarThomas Hartmann <>
parent dce26fc2
......@@ -1158,7 +1158,7 @@ QObject *ObjectNodeInstance::createPrimitive(const QString &typeName, int majorN
if (object)
if (object && QQmlEngine::contextForObject(object) == 0)
QQmlEngine::setContextForObject(object, context);
QQmlEngine::setObjectOwnership(object, QQmlEngine::CppOwnership);
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