diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp index ddb3428c46a4e6dc9c9adb73ab1edbc9db01d23d..d1a0fca48eebeb4ef1721309c0915e14d451dbfa 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp @@ -193,6 +193,9 @@ void PropertyEditor::changeValue(const QString &name) if (name == "type") return; + if (!m_selectedNode.isValid()) + return; + if (name == "id") { PropertyEditorValue *value = qobject_cast<PropertyEditorValue*>(QmlMetaType::toQObject(m_currentType->m_backendValuesPropertyMap.value(name))); const QString newId = value->value().toString();