Commit 2c7713a8 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner: crash fix



There can be holes in the prototype chain. This can lead to a type being
its own prototype.

Task-number: QTCREATORBUG-7300
Change-Id: I10c76decdf3d6490d468ad9dd1ea65f0cbacdfbb
Reviewed-by: default avatarMarco Bubke <marco.bubke@nokia.com>
Reviewed-by: default avatarAlessandro Portale <alessandro.portale@nokia.com>
parent 13b8e587
......@@ -269,6 +269,9 @@ QList<PropertyInfo> getObjectTypes(const ObjectValue *ov, const ContextPtr &cont
if (!local) {
const ObjectValue* prototype = ov->prototype(context);
if (prototype == ov)
return list;
const CppComponentValue * qmlObjectValue = value_cast<CppComponentValue>(prototype);
if (qmlObjectValue) {
......
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