forked from qt-creator/qt-creator
Fixes: Jump to editor doesn't work, if the output mode is active.
Task: Reported on irc.
This commit is contained in:
@@ -35,6 +35,7 @@
|
|||||||
|
|
||||||
#include <coreplugin/editormanager/editormanager.h>
|
#include <coreplugin/editormanager/editormanager.h>
|
||||||
#include <coreplugin/actionmanager/actionmanager.h>
|
#include <coreplugin/actionmanager/actionmanager.h>
|
||||||
|
#include <coreplugin/editormanager/editormanager.h>
|
||||||
#include <coreplugin/coreconstants.h>
|
#include <coreplugin/coreconstants.h>
|
||||||
#include <texteditor/itexteditor.h>
|
#include <texteditor/itexteditor.h>
|
||||||
#include <texteditor/basetexteditor.h>
|
#include <texteditor/basetexteditor.h>
|
||||||
@@ -316,8 +317,10 @@ void TaskWindow::showTaskInFile(const QModelIndex &index)
|
|||||||
if (file.isEmpty() || line == -1)
|
if (file.isEmpty() || line == -1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (QFileInfo(file).exists())
|
if (QFileInfo(file).exists()) {
|
||||||
TextEditor::BaseTextEditor::openEditorAt(file, line);
|
TextEditor::BaseTextEditor::openEditorAt(file, line);
|
||||||
|
Core::EditorManager::instance()->ensureEditorManagerVisible();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
m_model->setFileNotFound(index, true);
|
m_model->setFileNotFound(index, true);
|
||||||
m_listview->selectionModel()->setCurrentIndex(index, QItemSelectionModel::Select);
|
m_listview->selectionModel()->setCurrentIndex(index, QItemSelectionModel::Select);
|
||||||
|
|||||||
Reference in New Issue
Block a user