diff --git a/src/plugins/autotest/testrunconfiguration.h b/src/plugins/autotest/testrunconfiguration.h index df43b9dc86f..a087fa461f4 100644 --- a/src/plugins/autotest/testrunconfiguration.h +++ b/src/plugins/autotest/testrunconfiguration.h @@ -57,10 +57,9 @@ public: if (auto debuggable = dynamic_cast(config)) enableQuick = debuggable->mixedDebugging(); - if (auto debugAspect = aspect()) { - debugAspect->setUseQmlDebugger(enableQuick); - ProjectExplorer::ProjectExplorerPlugin::updateRunActions(); - } + auto debugAspect = addAspect(parent); + debugAspect->setUseQmlDebugger(enableQuick); + ProjectExplorer::ProjectExplorerPlugin::updateRunActions(); m_testConfig = config; }