From 97915bbceafeda7e44e07a2eb8da4d029e18c071 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Fri, 31 May 2013 13:56:14 +0200 Subject: Make 'open in other split' a flag instead of another method. Change-Id: I1acafd85ec7a87ba2ac61240f30c329d56461118 Reviewed-by: David Schulz --- src/plugins/cpptools/cpptoolsplugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugins/cpptools/cpptoolsplugin.cpp') diff --git a/src/plugins/cpptools/cpptoolsplugin.cpp b/src/plugins/cpptools/cpptoolsplugin.cpp index 66e8a68966..af579bb5a7 100644 --- a/src/plugins/cpptools/cpptoolsplugin.cpp +++ b/src/plugins/cpptools/cpptoolsplugin.cpp @@ -164,7 +164,8 @@ void CppToolsPlugin::switchHeaderSourceInNextSplit() QString otherFile = correspondingHeaderOrSource( Core::EditorManager::currentEditor()->document()->fileName()); if (!otherFile.isEmpty()) - Core::EditorManager::openEditorInOtherSplit(otherFile); + Core::EditorManager::openEditor(otherFile, Core::Id(), Core::EditorManager::OpenInOtherSplit + | Core::EditorManager::ModeSwitch); } static QStringList findFilesInProject(const QString &name, -- cgit v1.2.1