From 861981a39d8e295a9c166d3de0ac837d86897d5f Mon Sep 17 00:00:00 2001
From: Thomas Hartmann <Thomas.Hartmann@nokia.com>
Date: Wed, 21 Apr 2010 15:59:11 +0200
Subject: [PATCH] QmlDesigner.statesView: not changing to base state anymore

Before recent refactoring (done by Marco) the node instances were not
able to handle outside the current state. So we had to change back to
the base state for all base state changes from the rewriter.

This is not necessary, anymore.

Reviewed-by: Marco Bubke
---
 .../components/stateseditor/stateseditorview.cpp          | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/plugins/qmldesigner/components/stateseditor/stateseditorview.cpp b/src/plugins/qmldesigner/components/stateseditor/stateseditorview.cpp
index d184b755424..59d11e97ba3 100644
--- a/src/plugins/qmldesigner/components/stateseditor/stateseditorview.cpp
+++ b/src/plugins/qmldesigner/components/stateseditor/stateseditorview.cpp
@@ -396,14 +396,6 @@ void StatesEditorView::customNotification(const AbstractView *view, const QStrin
     if (debug)
         qDebug() << __FUNCTION__;
 
-    QmlModelView::customNotification(view, identifier, nodeList, data);
-    if (identifier == StartRewriterAmend) {
-        m_oldRewriterAmendState = currentState();
-        QmlModelView::setCurrentState(baseState());
-    } else if (identifier == EndRewriterAmend) {
-        if (m_oldRewriterAmendState.isValid())
-            QmlModelView::setCurrentState(m_oldRewriterAmendState);
-    }
 }
 
 QPixmap StatesEditorView::renderState(int i)
-- 
GitLab