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 ...@@ -11,6 +11,8 @@ PropertyEditorTransaction::PropertyEditorTransaction(QmlDesigner::PropertyEditor
void PropertyEditorTransaction::start() void PropertyEditorTransaction::start()
{ {
if (!m_propertyEditor->model())
return;
if (m_rewriterTransaction.isValid()) if (m_rewriterTransaction.isValid())
m_rewriterTransaction.commit(); m_rewriterTransaction.commit();
m_rewriterTransaction = m_propertyEditor->beginRewriterTransaction(); m_rewriterTransaction = m_propertyEditor->beginRewriterTransaction();
......
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