Commit 079dc3c6 authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner.Rewriter: Check if property value is different

parent b8881fea
......@@ -1350,7 +1350,11 @@ void TextToModelMerger::setupComponent(const ModelNode &node)
result = componentText; //implicit component
}
node.variantProperty("__component_data") = result;
if (node.hasVariantProperty("__component_data")
&& node.variantProperty("__component_data").value().toString() == result)
return;
node.variantProperty("__component_data").setValue(result);
}
QString TextToModelMerger::textAt(const Document::Ptr &doc,
......
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