forked from qt-creator/qt-creator
Clang: Do not flash issues pane when switching editor
Previously, when swichting to a file with errors, the Issues pane button would flash. Stop this for the clang code model issues as it is rather annoying since the issues pane is updated for the current document. Change-Id: I403a8b8cd0deef586c53769d0b646855a7fc9278 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -446,9 +446,12 @@ void TaskWindow::addTask(const Task &task)
|
||||
emit tasksChanged();
|
||||
navigateStateChanged();
|
||||
|
||||
if (task.type == Task::Error && d->m_filter->filterIncludesErrors()
|
||||
&& !d->m_filter->filteredCategories().contains(task.category))
|
||||
if ((task.options & Task::FlashWorthy)
|
||||
&& task.type == Task::Error
|
||||
&& d->m_filter->filterIncludesErrors()
|
||||
&& !d->m_filter->filteredCategories().contains(task.category)) {
|
||||
flash();
|
||||
}
|
||||
}
|
||||
|
||||
void TaskWindow::removeTask(const Task &task)
|
||||
|
||||
Reference in New Issue
Block a user