From 0246e28ae799cbf5796e0750e9b8e0ff7ec811c1 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann <Thomas.Hartmann@nokia.com> Date: Tue, 16 Feb 2010 12:38:59 +0100 Subject: [PATCH] QmlDesigner.propertyEditor: add sanity check --- .../qmldesigner/components/propertyeditor/propertyeditor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp index ddb3428c46a..d1a0fca48ee 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(); -- GitLab