From 354b51fda0037b611f4c0b5d8c00f1c3fa571b9a Mon Sep 17 00:00:00 2001
From: David Schulz <david.schulz@nokia.com>
Date: Wed, 18 Jan 2012 11:54:12 +0100
Subject: [PATCH] Set focus to the editor after selection change in outline

now also if the selection is changed in qmljsoutline

Task-number: QTCREATORBUG-6306
Change-Id: I07365de90cc932bcc5d0ccf021b3dd7daf3bc17a
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
---
 src/plugins/qmljseditor/qmljsoutline.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/plugins/qmljseditor/qmljsoutline.cpp b/src/plugins/qmljseditor/qmljsoutline.cpp
index ea197174ebf..2a6e3be7892 100644
--- a/src/plugins/qmljseditor/qmljsoutline.cpp
+++ b/src/plugins/qmljseditor/qmljsoutline.cpp
@@ -229,6 +229,7 @@ void QmlJSOutlineWidget::updateTextCursor(const QModelIndex &index)
     textCursor.setPosition(location.offset);
     m_editor->setTextCursor(textCursor);
     m_editor->centerCursor();
+    m_editor->setFocus();
     m_blockCursorSync = false;
 }
 
-- 
GitLab