From f7612278b2511d2c2d884e2be8093d104a47e887 Mon Sep 17 00:00:00 2001 From: Eike Ziller <eike.ziller@digia.com> Date: Wed, 8 May 2013 14:04:49 +0200 Subject: [PATCH] Raise editor window after "go to line" Change-Id: I3827716fa6233493224cd89d8417b95e7d34a711 Reviewed-by: David Schulz <david.schulz@digia.com> --- src/plugins/texteditor/linenumberfilter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/texteditor/linenumberfilter.cpp b/src/plugins/texteditor/linenumberfilter.cpp index 6fba21c5d96..bec075131da 100644 --- a/src/plugins/texteditor/linenumberfilter.cpp +++ b/src/plugins/texteditor/linenumberfilter.cpp @@ -30,8 +30,9 @@ #include "linenumberfilter.h" #include "itexteditor.h" -#include <coreplugin/editormanager/editormanager.h> #include <coreplugin/coreconstants.h> +#include <coreplugin/editormanager/editormanager.h> +#include <coreplugin/icore.h> #include <coreplugin/modemanager.h> #include <QMetaType> @@ -97,6 +98,7 @@ void LineNumberFilter::accept(FilterEntry selection) const } editor->gotoLine(data.first, data.second); editor->widget()->setFocus(); + ICore::raiseWindow(editor->widget()); Core::ModeManager::activateModeType(Id(Core::Constants::MODE_EDIT_TYPE)); } } -- GitLab