Commit 43b99a96 authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner.Rewriter: Sync component

parent f13c6aeb
......@@ -781,8 +781,11 @@ void TextToModelMerger::syncNode(ModelNode &modelNode,
if (!defaultPropertyItems.isEmpty()) {
if (defaultPropertyName.isEmpty()) {
if (modelNode.type() != QLatin1String("Qt/Component"))
if (!isComponentType(modelNode.type())) {
qWarning() << "No default property for node type" << modelNode.type() << ", ignoring child items.";
} else {
setupComponent(modelNode);
}
} else {
AbstractProperty modelProperty = modelNode.property(defaultPropertyName);
if (modelProperty.isNodeListProperty()) {
......
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