From 375dd56ef007d6d4d1c97532940229e8faf99f12 Mon Sep 17 00:00:00 2001
From: Thomas Hartmann <Thomas.Hartmann@nokia.com>
Date: Tue, 13 Apr 2010 12:12:19 +0200
Subject: [PATCH] QmlDesigner.propertyEditor: fixes rare crashbug

---
 .../components/propertyeditor/propertyeditortransaction.cpp    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditortransaction.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditortransaction.cpp
index 9b94842ccdd..5287a7e8dd9 100644
--- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditortransaction.cpp
+++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditortransaction.cpp
@@ -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();
-- 
GitLab