Analyzer: Trigger stopIt() only once when pressing the stop button

The stopIt() slot is already connected in the constructor of
AnalyzerRunControl.

The double connection is clearly not intended and, considering that
various analyzers modify internal state from those callse, could lead
to incorrect behavior.

Change-Id: I1c68eb06729849771f4a25257a219c84a032adf3
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
Ulf Hermann
2014-11-19 17:23:15 +01:00
parent beac7b9539
commit 4e3435a5cf
2 changed files with 0 additions and 2 deletions

View File

@@ -150,7 +150,6 @@ static void startRemoteTool(IAnalyzerTool *tool)
sp.workingDirectory = dlg.workingDirectory();
AnalyzerRunControl *rc = tool->createRunControl(sp, 0);
QObject::connect(AnalyzerManager::stopAction(), SIGNAL(triggered()), rc, SLOT(stopIt()));
ProjectExplorerPlugin::startRunControl(rc, tool->runMode());
}