Commit 2e582c3f authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.propertyEditor: crash fix

processEvents() might lead to an invalid fxObjectNode
parent e33b508e
......@@ -197,6 +197,8 @@ void PropertyEditor::NodeType::setup(const QmlObjectNode &fxObjectNode, const QS
QApplication::processEvents();
ctxt->setContextProperty("stateName", QVariant(stateName));
QApplication::processEvents();
if (!fxObjectNode.isValid())
return;
ctxt->setContextProperty("propertyCount", QVariant(fxObjectNode.modelNode().properties().count()));
ctxt->setContextProperty("isBaseState", QVariant(fxObjectNode.isInBaseState()));
ctxt->setContextProperty("selectionChanged", QVariant(false));
......
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