Skip to content
Snippets Groups Projects
Commit 3479b4a0 authored by Petar Perisin's avatar Petar Perisin
Browse files

ProjectExplorer: Fix task visibility


Change-Id: I283c3704b834cfb3d62f3e12a76c5530ee85d777
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 5ad99eb2
No related branches found
No related tags found
No related merge requests found
...@@ -115,8 +115,7 @@ void TaskHub::addTask(Task::TaskType type, const QString &description, Core::Id ...@@ -115,8 +115,7 @@ void TaskHub::addTask(Task::TaskType type, const QString &description, Core::Id
void TaskHub::addTask(Task task) void TaskHub::addTask(Task task)
{ {
if (task.line != -1 && !task.file.isEmpty()) { if (task.line != -1 && !task.file.isEmpty()) {
bool visible = (task.type == Task::Warning || task.type == Task::Error); TaskMark *mark = new TaskMark(task.taskId, task.file.toString(), task.line, !task.icon.isNull());
TaskMark *mark = new TaskMark(task.taskId, task.file.toString(), task.line, visible);
mark->setIcon(task.icon); mark->setIcon(task.icon);
mark->setPriority(TextEditor::ITextMark::LowPriority); mark->setPriority(TextEditor::ITextMark::LowPriority);
task.addMark(mark); task.addMark(mark);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment