From 2e020d50070e1a4c1000c4162f5cca14792a8b01 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Mon, 11 Apr 2016 13:25:12 +0200 Subject: [PATCH] ProjectExplorer: Clear Tasks properly Reset the Mark and the formating on a call to clear(). Change-Id: Ie100cf79aa36f98600c152293e119bd4f9465b74 Reviewed-by: Vikas Pachdha Reviewed-by: Tim Jenssen --- src/plugins/projectexplorer/task.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/task.cpp b/src/plugins/projectexplorer/task.cpp index bdb6e261250..91e6d5c987b 100644 --- a/src/plugins/projectexplorer/task.cpp +++ b/src/plugins/projectexplorer/task.cpp @@ -98,13 +98,15 @@ bool Task::isNull() const void Task::clear() { taskId = 0; + type = Task::Unknown; description.clear(); file = Utils::FileName(); line = -1; movedLine = -1; category = Core::Id(); - type = Task::Unknown; icon = QIcon(); + formats.clear(); + m_mark.clear(); } //