diff --git a/src/plugins/autotest/ctest/ctesttreeitem.cpp b/src/plugins/autotest/ctest/ctesttreeitem.cpp index 9ffc06b028e..ed5401cc13c 100644 --- a/src/plugins/autotest/ctest/ctesttreeitem.cpp +++ b/src/plugins/autotest/ctest/ctesttreeitem.cpp @@ -83,7 +83,7 @@ QList CTestTreeItem::testConfigurationsFor(const QStringLi if (!project) return {}; - const ProjectExplorer::Target *target = project->targets().value(0); + const ProjectExplorer::Target *target = ProjectExplorer::ProjectManager::startupTarget(); if (!target) return {};