Commit 0246e28a authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.propertyEditor: add sanity check

parent 48dee2d5
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment