Commit 325c5d87 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.rewriter: fix (optimization)

We only change a value if different.
parent 0aa863e9
......@@ -1521,7 +1521,8 @@ void TextToModelMerger::setupCustomParserNode(const ModelNode &node)
if (modelText.isEmpty())
return;
ModelNode(node).setCustomParserSource(modelText);
if (node.customParserSource() != modelText)
ModelNode(node).setCustomParserSource(modelText);
}
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