Commit 219332fd authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner: crashfix

The model() might be deleted already!
parent 4f70fc58
......@@ -11,6 +11,8 @@ PropertyEditorTransaction::PropertyEditorTransaction(QmlDesigner::PropertyEditor
void PropertyEditorTransaction::start()
if (!m_propertyEditor->model())
if (m_rewriterTransaction.isValid())
m_rewriterTransaction = m_propertyEditor->beginRewriterTransaction();
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