forked from qt-creator/qt-creator
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:
@@ -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()) {
|
||||
|
Reference in New Issue
Block a user