forked from qt-creator/qt-creator
QmlDesigner.rewriter: fix (optimization)
We only change a value if different.
This commit is contained in:
@@ -1521,6 +1521,7 @@ void TextToModelMerger::setupCustomParserNode(const ModelNode &node)
|
||||
if (modelText.isEmpty())
|
||||
return;
|
||||
|
||||
if (node.customParserSource() != modelText)
|
||||
ModelNode(node).setCustomParserSource(modelText);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user