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

QmlDesigner.propertyEditor: add sanity check

parent 48dee2d5
......@@ -193,6 +193,9 @@ void PropertyEditor::changeValue(const QString &name)
if (name == "type")
if (!m_selectedNode.isValid())
if (name == "id") {
PropertyEditorValue *value = qobject_cast<PropertyEditorValue*>(QmlMetaType::toQObject(m_currentType->m_backendValuesPropertyMap.value(name)));
const QString newId = value->value().toString();
Supports Markdown
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