Commit 418fda61 authored by Thomas Hartmann's avatar Thomas Hartmann

Qml Designer - property editor: This patch avoids bindings of undefined objects

This fixes random crashes
parent c283c05d
......@@ -118,9 +118,9 @@ void PropertyEditor::NodeType::setup(const QmlObjectNode &fxObjectNode, const QS
ctxt->setContextProperty("anchorBackend", 0);
ctxt->setContextProperty("backendValues", 0);
foreach (const QString &propertyName, m_backendValuesPropertyMap.keys())
m_backendValuesPropertyMap.clear(propertyName);
qDeleteAll(m_backendValuesPropertyMap.children());
//foreach (const QString &propertyName, m_backendValuesPropertyMap.keys())
// m_backendValuesPropertyMap.clear(propertyName);
//qDeleteAll(m_backendValuesPropertyMap.children());
if (fxObjectNode.isValid()) {
foreach (const QString &propertyName, fxObjectNode.modelNode().metaInfo().properties(true).keys())
......
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