Skip to content
Snippets Groups Projects
Commit 0246e28a authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.propertyEditor: add sanity check

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