AutoTest: Fix using target information after kit change

Fixes: QTCREATORBUG-29477
Change-Id: I5d1f8d65ed074d912740b87eac1c7d4413ed2588
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2023-08-16 12:48:46 +02:00
parent 02e2a642dc
commit 397cd1ba3d

View File

@@ -83,7 +83,7 @@ QList<ITestConfiguration *> CTestTreeItem::testConfigurationsFor(const QStringLi
if (!project) if (!project)
return {}; return {};
const ProjectExplorer::Target *target = project->targets().value(0); const ProjectExplorer::Target *target = ProjectExplorer::ProjectManager::startupTarget();
if (!target) if (!target)
return {}; return {};