QmlDesigner: Avoid infinite recursion

Task-number: QDS-7864
Change-Id: Idc7b44d23ff252a870357bafc2dd072e0b83befd
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2022-12-14 14:39:37 +01:00
parent 3066dce3b8
commit f22a8a42a9

View File

@@ -562,9 +562,9 @@ QVector<PropertyInfo> getObjectTypes(const ObjectValue *objectValue, const Conte
const CppComponentValue * qmlObjectValue = value_cast<CppComponentValue>(prototype); const CppComponentValue * qmlObjectValue = value_cast<CppComponentValue>(prototype);
if (qmlObjectValue) if (qmlObjectValue)
propertyList.append(getQmlTypes(qmlObjectValue, context, local, rec)); propertyList.append(getQmlTypes(qmlObjectValue, context, local, rec + 1));
else else
propertyList.append(getObjectTypes(prototype, context, local, rec)); propertyList.append(getObjectTypes(prototype, context, local, rec + 1));
} }
return propertyList; return propertyList;