Fix issue when buildQueueFinished signal is emitted too fast

Change-Id: I56ba8f9d0d4abe7627f9dd0d980774dda814d456
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
Christian Stenger
2014-12-05 08:39:24 +01:00
parent 32a6849fae
commit edfd394bf5

View File

@@ -451,9 +451,9 @@ void TestRunner::buildProject(ProjectExplorer::Project *project)
ProjectExplorer::BuildManager *mgr = static_cast<ProjectExplorer::BuildManager *>(
ProjectExplorer::BuildManager::instance());
ProjectExplorer::ProjectExplorerPlugin *pep = ProjectExplorer::ProjectExplorerPlugin::instance();
pep->buildProject(project);
connect(mgr, &ProjectExplorer::BuildManager::buildQueueFinished,
this, &TestRunner::buildFinished);
pep->buildProject(project);
}
void TestRunner::buildFinished(bool success)