From bde1ebaaea85e460f0cba7240af06e714b387acb Mon Sep 17 00:00:00 2001 From: dt Date: Fri, 3 Sep 2010 11:57:46 +0200 Subject: Remove EditorManager::ensureEditorManagerVisible() The function always switched to Edit Mode, which was the cause for several bugs. Since openEditor() already does switch to the right mode, the function is not really needed. The following actions now respect the prefered mode of the editor: "f file"-locator The Open Documents list Editor history navigation --- src/plugins/projectexplorer/showineditortaskhandler.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/plugins/projectexplorer/showineditortaskhandler.cpp') diff --git a/src/plugins/projectexplorer/showineditortaskhandler.cpp b/src/plugins/projectexplorer/showineditortaskhandler.cpp index 8783bcd7c0..fce46a94c5 100644 --- a/src/plugins/projectexplorer/showineditortaskhandler.cpp +++ b/src/plugins/projectexplorer/showineditortaskhandler.cpp @@ -56,7 +56,6 @@ void ShowInEditorTaskHandler::handle(const ProjectExplorer::Task &task) { QFileInfo fi(task.file); TextEditor::BaseTextEditor::openEditorAt(fi.canonicalFilePath(), task.line); - Core::EditorManager::instance()->ensureEditorManagerVisible(); } QAction *ShowInEditorTaskHandler::createAction(QObject *parent) -- cgit v1.2.3