Commit 3479b4a0 authored by Petar Perisin's avatar Petar Perisin

ProjectExplorer: Fix task visibility

Change-Id: I283c3704b834cfb3d62f3e12a76c5530ee85d777
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 5ad99eb2
......@@ -115,8 +115,7 @@ void TaskHub::addTask(Task::TaskType type, const QString &description, Core::Id
void TaskHub::addTask(Task task)
{
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, visible);
TaskMark *mark = new TaskMark(task.taskId, task.file.toString(), task.line, !task.icon.isNull());
mark->setIcon(task.icon);
mark->setPriority(TextEditor::ITextMark::LowPriority);
task.addMark(mark);
......
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