forked from qt-creator/qt-creator
QmlDesigner: Avoid infinite recursion
Task-number: QDS-7864 Change-Id: Idc7b44d23ff252a870357bafc2dd072e0b83befd Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user