diff --git a/src/plugins/autotest/testrunconfiguration.h b/src/plugins/autotest/testrunconfiguration.h index 1c86f663591..5f9c79f851a 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::instance()->updateRunActions(); - } + auto debugAspect = addAspect(parent); + debugAspect->setUseQmlDebugger(enableQuick); + ProjectExplorer::ProjectExplorerPlugin::instance()->updateRunActions(); m_testConfig = config; }