ProjectExplorer: Add runStartupProject() convenience function

The usage pattern seems to be used often enough to justify a function.

Change-Id: Iecdeb2b42879f419154902e685d0d13e8cae8b33
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
hjk
2015-02-19 17:20:38 +01:00
parent 6fb766bf43
commit 54ce123a26
6 changed files with 18 additions and 36 deletions

View File

@@ -560,8 +560,7 @@ AnalyzerRunControl *CallgrindToolPrivate::createRunControl(const AnalyzerStartPa
void CallgrindTool::startLocalTool()
{
if (checkForLocalStart(ReleaseMode)) {
Project *pro = SessionManager::startupProject();
ProjectExplorerPlugin::runProject(pro, CallgrindRunMode);
ProjectExplorerPlugin::runStartupProject(CallgrindRunMode);
d->setBusyCursor(true);
}
}