CMake: Clear buildsystem related tasks before starting a new parser run

This prevents stale tasks from piling up in the issues pane.

Change-Id: I90f79e969b8929e5bb43e3964c01fcd10af2ea33
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tobias Hunger
2016-11-04 14:25:59 +01:00
committed by Tim Jenssen
parent 6b469e81e8
commit 9073a6419a

View File

@@ -337,6 +337,8 @@ QSet<Core::Id> BuildDirManager::updateCodeModel(CppTools::ProjectPartBuilder &pp
void BuildDirManager::parse()
{
TaskHub::clearTasks(ProjectExplorer::Constants::TASK_CATEGORY_BUILDSYSTEM);
updateReaderType([this]() { parseOnceReaderReady(false); });
}