forked from qt-creator/qt-creator
ProjectExplorer: Consolidate some Session::active* accesses
Change-Id: I47b0f6c2c60b2f7c86b6ffd1ad3df393d1321c8b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -392,6 +392,18 @@ BuildSystem *SessionManager::startupBuildSystem()
|
||||
return t ? t->buildSystem() : nullptr;
|
||||
}
|
||||
|
||||
/*!
|
||||
* Returns the RunConfiguration of the currently active target
|
||||
* of the startup project, if such exists, or \c nullptr otherwise.
|
||||
*/
|
||||
|
||||
|
||||
RunConfiguration *SessionManager::startupRunConfiguration()
|
||||
{
|
||||
Target *t = startupTarget();
|
||||
return t ? t->activeRunConfiguration() : nullptr;
|
||||
}
|
||||
|
||||
void SessionManager::addProject(Project *pro)
|
||||
{
|
||||
QTC_ASSERT(pro, return);
|
||||
|
||||
Reference in New Issue
Block a user