Skip to content
Snippets Groups Projects
Commit 354b51fd authored by David Schulz's avatar David Schulz Committed by Christian Stenger
Browse files

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: default avatarChristian Stenger <christian.stenger@nokia.com>
parent e583422c
No related branches found
No related tags found
No related merge requests found
...@@ -229,6 +229,7 @@ void QmlJSOutlineWidget::updateTextCursor(const QModelIndex &index) ...@@ -229,6 +229,7 @@ void QmlJSOutlineWidget::updateTextCursor(const QModelIndex &index)
textCursor.setPosition(location.offset); textCursor.setPosition(location.offset);
m_editor->setTextCursor(textCursor); m_editor->setTextCursor(textCursor);
m_editor->centerCursor(); m_editor->centerCursor();
m_editor->setFocus();
m_blockCursorSync = false; m_blockCursorSync = false;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment