AutoTest: Fix synchronizing test tools

It is wrong to query the global active state when
adding test tools known to be active.

Change-Id: I89ab292e1a71b43757e6308fa4b4c584d62fe28b
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2021-09-02 16:57:45 +02:00
parent e76f83aa90
commit b99d7623f3

View File

@@ -391,11 +391,9 @@ void TestTreeModel::synchronizeTestTools()
for (ITestTool *testTool : qAsConst(tools)) { for (ITestTool *testTool : qAsConst(tools)) {
ITestTreeItem *testToolRootNode = testTool->rootNode(); ITestTreeItem *testToolRootNode = testTool->rootNode();
if (testTool->active()) { invisibleRoot->appendChild(testToolRootNode);
invisibleRoot->appendChild(testToolRootNode); if (!oldFrameworkRoots.removeOne(testToolRootNode))
if (!oldFrameworkRoots.removeOne(testToolRootNode)) newlyAdded.insert(testTool);
newlyAdded.insert(testTool);
}
} }
if (project) { if (project) {