From 397cd1ba3ddf489903793a33c62f4d6a665ca87c Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 16 Aug 2023 12:48:46 +0200 Subject: [PATCH] AutoTest: Fix using target information after kit change Fixes: QTCREATORBUG-29477 Change-Id: I5d1f8d65ed074d912740b87eac1c7d4413ed2588 Reviewed-by: David Schulz --- src/plugins/autotest/ctest/ctesttreeitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {};