AnalyerRunControl: Don't store the runconfiguration

There is no gurantee that the runconfiguration stays alive after
creation.

Change-Id: Ia520cc33a89ec56ad6a9b928f841eb4551732ae0
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Daniel Teske
2015-06-15 12:39:19 +02:00
committed by hjk
parent 1538dca81a
commit c209eb9fbb
2 changed files with 1 additions and 7 deletions

View File

@@ -53,7 +53,6 @@ AnalyzerRunControl::AnalyzerRunControl(const AnalyzerStartParameters &sp,
{
setIcon(QLatin1String(":/images/analyzer_start_small.png"));
m_runConfig = runConfiguration;
m_sp = sp;
connect(this, &AnalyzerRunControl::finished,
@@ -101,7 +100,7 @@ bool AnalyzerRunControl::isRunning() const
QString AnalyzerRunControl::displayName() const
{
return m_runConfig ? m_runConfig->displayName() : m_sp.displayName;
return m_sp.displayName;
}
} // namespace Analyzer