forked from qt-creator/qt-creator
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:
@@ -83,7 +83,7 @@ QList<ITestConfiguration *> 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 {};
|
||||
|
||||
|
Reference in New Issue
Block a user