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

Fix crash for a dangling pointer

Task-Number: BAUHAUS-574
Reviewed-by: kkoehne
parent 05f43cd6
......@@ -62,10 +62,12 @@ int NodeInstanceMetaObject::metaCall(QMetaObject::Call call, int id, void **a)
}
}
} else {
if (parent())
metaCallReturnValue = parent()->metaCall(call, id, a);
else
metaCallReturnValue = object()->qt_metacall(call, id, a);
if (!QObjectPrivate::get(object())->wasDeleted) {
if (parent())
metaCallReturnValue = parent()->metaCall(call, id, a);
else
metaCallReturnValue = object()->qt_metacall(call, id, a);
}
if (call == QMetaObject::WriteProperty
&& !property(id).hasNotifySignal()
......
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