Commit 3bf1a306 authored by dt's avatar dt

Fixes: Jump to editor doesn't work, if the output mode is active.

Task:     Reported on irc.
parent 00da0ea3
......@@ -35,6 +35,7 @@
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/actionmanager/actionmanager.h>
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/coreconstants.h>
#include <texteditor/itexteditor.h>
#include <texteditor/basetexteditor.h>
......@@ -316,8 +317,10 @@ void TaskWindow::showTaskInFile(const QModelIndex &index)
if (file.isEmpty() || line == -1)
return;
if (QFileInfo(file).exists())
if (QFileInfo(file).exists()) {
TextEditor::BaseTextEditor::openEditorAt(file, line);
Core::EditorManager::instance()->ensureEditorManagerVisible();
}
else
m_model->setFileNotFound(index, true);
m_listview->selectionModel()->setCurrentIndex(index, QItemSelectionModel::Select);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment