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:
@@ -46,6 +46,7 @@
|
||||
#include <projectexplorer/kitinformation.h>
|
||||
#include <projectexplorer/projectexplorer.h>
|
||||
#include <projectexplorer/runconfigurationaspects.h>
|
||||
#include <projectexplorer/session.h>
|
||||
#include <projectexplorer/target.h>
|
||||
#include <projectexplorer/toolchain.h>
|
||||
|
||||
@@ -238,7 +239,7 @@ void QnxAttachDebugSupport::showProcessesDialog()
|
||||
return;
|
||||
|
||||
// FIXME: That should be somehow related to the selected kit.
|
||||
auto startRunConfig = RunConfiguration::startupRunConfiguration();
|
||||
auto startRunConfig = SessionManager::startupRunConfiguration();
|
||||
auto runConfig = qobject_cast<QnxRunConfiguration *>(startRunConfig);
|
||||
if (!runConfig)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user