forked from qt-creator/qt-creator
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:
@@ -599,10 +599,8 @@ void MemcheckTool::setBusyCursor(bool busy)
|
||||
|
||||
void MemcheckTool::startLocalTool()
|
||||
{
|
||||
if (checkForLocalStart(DebugMode)) {
|
||||
Project *pro = SessionManager::startupProject();
|
||||
ProjectExplorerPlugin::runProject(pro, MemcheckRunMode);
|
||||
}
|
||||
if (checkForLocalStart(DebugMode))
|
||||
ProjectExplorerPlugin::runStartupProject(MemcheckRunMode);
|
||||
}
|
||||
|
||||
void MemcheckTool::startRemoteTool()
|
||||
@@ -622,10 +620,8 @@ MemcheckWithGdbTool::MemcheckWithGdbTool(QObject *parent) :
|
||||
|
||||
void MemcheckWithGdbTool::startLocalTool()
|
||||
{
|
||||
if (checkForLocalStart(DebugMode)) {
|
||||
Project *pro = SessionManager::startupProject();
|
||||
ProjectExplorerPlugin::runProject(pro, MemcheckWithGdbRunMode);
|
||||
}
|
||||
if (checkForLocalStart(DebugMode))
|
||||
ProjectExplorerPlugin::runStartupProject(MemcheckWithGdbRunMode);
|
||||
}
|
||||
|
||||
void MemcheckWithGdbTool::startRemoteTool()
|
||||
|
||||
Reference in New Issue
Block a user