Commit 4334c119 authored by Christian Kandeler's avatar Christian Kandeler Committed by hjk

Clear old analyzer issues on tool start.

Change-Id: I54f7791c15e05ca5c85c8b4059f80b050de57282
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent d108a54a
......@@ -52,6 +52,7 @@
#include <projectexplorer/buildconfiguration.h>
#include <projectexplorer/session.h>
#include <projectexplorer/target.h>
#include <projectexplorer/taskhub.h>
#include <utils/algorithm.h>
#include <utils/fancymainwindow.h>
......@@ -420,6 +421,7 @@ bool AnalyzerManagerPrivate::showPromptDialog(const QString &title, const QStrin
void AnalyzerManagerPrivate::startTool()
{
QTC_ASSERT(m_currentAction, return);
TaskHub::clearTasks(Constants::ANALYZERTASK_ID);
m_currentAction->toolStarter()();
}
......
......@@ -44,7 +44,6 @@
#include <projectexplorer/project.h>
#include <projectexplorer/projectexplorer.h>
#include <projectexplorer/target.h>
#include <projectexplorer/taskhub.h>
#include <projectexplorer/toolchain.h>
#include <utils/qtcassert.h>
......@@ -82,9 +81,6 @@ bool MemcheckRunControl::startEngine()
{
m_runner.setParser(&m_parser);
// Clear about-to-be-outdated tasks.
TaskHub::clearTasks(Analyzer::Constants::ANALYZERTASK_ID);
appendMessage(tr("Analyzing memory of %1").arg(executable()) + QLatin1Char('\n'),
Utils::NormalMessageFormat);
return ValgrindRunControl::startEngine();
......
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