forked from qt-creator/qt-creator
Debugger: Avoid two uses of IRCAspect::runConfiguration
The function is about to be removed. Change-Id: Ib18d1c51c18a9a979395910cdcd487575061dea0 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -29,10 +29,13 @@
|
||||
#include "testconfiguration.h"
|
||||
|
||||
#include <debugger/debuggerrunconfigurationaspect.h>
|
||||
|
||||
#include <projectexplorer/applicationlauncher.h>
|
||||
#include <projectexplorer/projectexplorer.h>
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
#include <projectexplorer/devicesupport/devicemanager.h>
|
||||
#include <projectexplorer/runconfiguration.h>
|
||||
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
#include <QCoreApplication>
|
||||
@@ -54,8 +57,10 @@ public:
|
||||
if (auto debuggable = dynamic_cast<DebuggableTestConfiguration *>(config))
|
||||
enableQuick = debuggable->mixedDebugging();
|
||||
|
||||
if (auto debugAspect = extraAspect<Debugger::DebuggerRunConfigurationAspect>())
|
||||
if (auto debugAspect = extraAspect<Debugger::DebuggerRunConfigurationAspect>()) {
|
||||
debugAspect->setUseQmlDebugger(enableQuick);
|
||||
ProjectExplorer::ProjectExplorerPlugin::instance()->updateRunActions();
|
||||
}
|
||||
m_testConfig = config;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user