Commit c209eb9f authored by Daniel Teske's avatar Daniel Teske Committed by hjk

AnalyerRunControl: Don't store the runconfiguration

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

Change-Id: Ia520cc33a89ec56ad6a9b928f841eb4551732ae0
Reviewed-by: 's avatarhjk <hjk@theqtcompany.com>
parent 1538dca8
......@@ -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
......@@ -68,9 +68,6 @@ public:
virtual void pause() {}
virtual void unpause() {}
/// The active run configuration for this engine, might be zero.
ProjectExplorer::RunConfiguration *runConfiguration() const { return m_runConfig; }
/// The start parameters for this engine.
const AnalyzerStartParameters &startParameters() const { return m_sp; }
......@@ -98,8 +95,6 @@ signals:
private:
bool supportsReRunning() const { return false; }
ProjectExplorer::RunConfiguration *m_runConfig;
AnalyzerStartParameters m_sp;
};
} // namespace Analyzer
......
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