From 5c79e845690637d24ca0685c862b2f04a36db69f Mon Sep 17 00:00:00 2001
From: Thomas Hartmann <Thomas.Hartmann@nokia.com>
Date: Tue, 13 Apr 2010 15:03:38 +0200
Subject: [PATCH] QmlDesigner.propertyEditor: end all transactions before
 detaching

---
 .../qmldesigner/components/propertyeditor/propertyeditor.cpp    | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp
index 2d919fd94df..c1e5df5a581 100644
--- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp
+++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp
@@ -398,6 +398,7 @@ void PropertyEditor::changeValue(const QString &propertyName)
             castedValue = QVariant(newColor);
         }
 
+        qDebug() << value->value();
         try {
             if (!value->value().isValid()) { //reset
                 fxObjectNode.removeVariantProperty(propertyName);
@@ -787,6 +788,7 @@ void PropertyEditor::modelAttached(Model *model)
 void PropertyEditor::modelAboutToBeDetached(Model *model)
 {
     QmlModelView::modelAboutToBeDetached(model);
+    m_currentType->m_propertyEditorTransaction->end();
 
     resetView();
 }
-- 
GitLab