Commit ab21b7b6 authored by Tim Jenssen's avatar Tim Jenssen

QmlDesigner: move setObjectOwnership

 - to the same position like in the other methods

Change-Id: Ie12147de0e9030a35928a2c0a5dd38d34f998845
Reviewed-by: default avatarThomas Hartmann <>
parent fd6afba3
......@@ -1042,14 +1042,13 @@ QObject *ObjectNodeInstance::createComponent(const QUrl &componentUrl, QQmlConte
QObject *object = component.beginCreate(context);
QQmlEngine::setObjectOwnership(object, QQmlEngine::CppOwnership);
if (component.isError()) {
qWarning() << "Error in:" << Q_FUNC_INFO << componentUrl;
foreach (const QQmlError &error, component.errors())
qWarning() << error;
QQmlEngine::setObjectOwnership(object, QQmlEngine::CppOwnership);
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