From 0f58258e04c841789a0965a6d97a6862b3d7679d Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 15 Sep 2021 06:55:27 +0200 Subject: [PATCH] AutoTest: Silence soft assert We synchronize the test tools now earlier and may not have finished setting up the configuration of the current project. This means the project might have no valid target yet. Amends 481070d8080f. Change-Id: Ic0c1817318a343e68587930c492397a6094a4ce2 Reviewed-by: David Schulz --- src/plugins/autotest/testtreemodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/autotest/testtreemodel.cpp b/src/plugins/autotest/testtreemodel.cpp index 696db9fd907..b9449c31d89 100644 --- a/src/plugins/autotest/testtreemodel.cpp +++ b/src/plugins/autotest/testtreemodel.cpp @@ -407,7 +407,7 @@ void TestTreeModel::synchronizeTestTools() if (project) { const QList &allTargets = project->targets(); auto target = allTargets.empty() ? nullptr : allTargets.first(); - if (QTC_GUARD(target)) { + if (target) { auto bs = target->buildSystem(); for (ITestTool *testTool : newlyAdded) { ITestTreeItem *rootNode = testTool->rootNode();