From a5b2dca3c99f9b384c6b5e76718573f2f1455580 Mon Sep 17 00:00:00 2001
From: Thomas Hartmann <Thomas.Hartmann@nokia.com>
Date: Fri, 23 Apr 2010 11:12:53 +0200
Subject: [PATCH] QmlDesigner.formeditor: do not change back to base state
 (drag n drop)

The activation of the drag tool should not activate the base state
this is discussed in Bauhaus-600
---
 .../qmldesigner/components/formeditor/formeditorview.cpp        | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/plugins/qmldesigner/components/formeditor/formeditorview.cpp b/src/plugins/qmldesigner/components/formeditor/formeditorview.cpp
index 66d86e7261b..cba3a7a3097 100644
--- a/src/plugins/qmldesigner/components/formeditor/formeditorview.cpp
+++ b/src/plugins/qmldesigner/components/formeditor/formeditorview.cpp
@@ -285,7 +285,6 @@ void FormEditorView::changeToDragTool()
     scene()->setPaintMode(FormEditorScene::NormalMode);
     m_scene->updateAllFormEditorItems();
     setCursor(Qt::ArrowCursor);
-    setCurrentState(baseState());
     m_currentTool->clear();
     m_currentTool = m_dragTool;
     m_currentTool->clear();
@@ -330,7 +329,6 @@ void FormEditorView::changeToItemCreatorTool()
     scene()->setPaintMode(FormEditorScene::NormalMode);
     m_scene->updateAllFormEditorItems();
     setCursor(Qt::CrossCursor);
-    setCurrentState(baseState());
     m_currentTool->clear();
     m_currentTool = m_itemCreatorTool;
     m_currentTool->clear();
-- 
GitLab