QmlDesigner: Ignore property without node location

This means that the node was created during this transaction
and the correct value will be set when creating the node.

Change-Id: Ie70df3c9156f8958c099bd49551f3dc42d815e25
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2017-09-22 17:36:04 +02:00
parent 64a1401919
commit 34a4c60da3

View File

@@ -181,6 +181,8 @@ bool ChangePropertyRewriteAction::execute(QmlRefactoring &refactoring, ModelNode
{
if (m_sheduledInHierarchy) {
const int nodeLocation = positionStore.nodeOffset(m_property.parentModelNode());
if (nodeLocation < 0)
return true;
bool result = false;
if (m_property.isDefaultProperty()) {