Commit c83ebb83 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner: crash fix



This avoids an infinite recursion. For some reason "" might be a proper
prototype in some cases.

Change-Id: Ib3af9d0ff2fbf87b2ba20a79e8b456831e7a940f
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent 945d7092
......@@ -182,6 +182,8 @@ QList<PropertyInfo> getQmlTypes(const CppComponentValue *ov, const ContextPtr &c
QList<PropertyInfo> list;
if (!ov)
return list;
if (ov->className().isEmpty())
return list;
PropertyMemberProcessor processor;
ov->processMembers(&processor);
......@@ -256,6 +258,9 @@ QList<PropertyInfo> getObjectTypes(const ObjectValue *ov, const ContextPtr &cont
QList<PropertyInfo> list;
if (!ov)
return list;
if (ov->className().isEmpty())
return list;
PropertyMemberProcessor processor;
ov->processMembers(&processor);
......
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