Commit 375dd56e authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.propertyEditor: fixes rare crashbug

parent 6aaeff77
......@@ -18,13 +18,12 @@ void PropertyEditorTransaction::start()
void PropertyEditorTransaction::end()
{
if (m_rewriterTransaction.isValid())
if (m_rewriterTransaction.isValid() && m_propertyEditor->model())
m_rewriterTransaction.commit();
}
void PropertyEditorTransaction::timerEvent(QTimerEvent *timerEvent)
{
qDebug() << "timer";
killTimer(timerEvent->timerId());
if (m_rewriterTransaction.isValid())
m_rewriterTransaction.commit();
......
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