forked from qt-creator/qt-creator
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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user