forked from qt-creator/qt-creator
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
This commit is contained in:
@@ -170,10 +170,8 @@ void CppToolsPlugin::switchHeaderSource()
|
||||
Core::EditorManager *editorManager = Core::EditorManager::instance();
|
||||
Core::IEditor *editor = editorManager->currentEditor();
|
||||
QString otherFile = correspondingHeaderOrSource(editor->file()->fileName());
|
||||
if (!otherFile.isEmpty()) {
|
||||
if (!otherFile.isEmpty())
|
||||
editorManager->openEditor(otherFile);
|
||||
editorManager->ensureEditorManagerVisible();
|
||||
}
|
||||
}
|
||||
|
||||
QFileInfo CppToolsPlugin::findFile(const QDir &dir, const QString &name,
|
||||
|
||||
Reference in New Issue
Block a user