forked from qt-creator/qt-creator
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:
@@ -346,7 +346,7 @@ void ObjectNodeInstance::addToNewProperty(QObject *object, QObject *newParent, c
|
|||||||
if (isList(property)) {
|
if (isList(property)) {
|
||||||
QQmlListReference list = qvariant_cast<QQmlListReference>(property.read());
|
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() << "!";
|
qWarning() << "Property list interface not fully implemented for Class " << property.property().typeName() << " in property " << property.name() << "!";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user