QmlDesigner: Fix QmlListProperty append check

There is no need to check for full list functionality support when we
just want to add to the list.

Fixes: QDS-14440
Change-Id: I4a5568b95879171f953db441ac610f476490880a
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Miikka Heikkinen
2025-04-04 16:00:17 +03:00
parent b58ad8267a
commit 0a7cc8e06e

View File

@@ -346,7 +346,7 @@ void ObjectNodeInstance::addToNewProperty(QObject *object, QObject *newParent, c
if (isList(property)) {
QQmlListReference list = qvariant_cast<QQmlListReference>(property.read());
if (!QmlPrivateGate::hasFullImplementedListInterface(list)) {
if (!list.isValid() || !list.canAppend()) {
qWarning() << "Property list interface not fully implemented for Class " << property.property().typeName() << " in property " << property.name() << "!";
return;
}