forked from qt-creator/qt-creator
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:
@@ -391,11 +391,9 @@ void TestTreeModel::synchronizeTestTools()
|
||||
|
||||
for (ITestTool *testTool : qAsConst(tools)) {
|
||||
ITestTreeItem *testToolRootNode = testTool->rootNode();
|
||||
if (testTool->active()) {
|
||||
invisibleRoot->appendChild(testToolRootNode);
|
||||
if (!oldFrameworkRoots.removeOne(testToolRootNode))
|
||||
newlyAdded.insert(testTool);
|
||||
}
|
||||
invisibleRoot->appendChild(testToolRootNode);
|
||||
if (!oldFrameworkRoots.removeOne(testToolRootNode))
|
||||
newlyAdded.insert(testTool);
|
||||
}
|
||||
|
||||
if (project) {
|
||||
|
Reference in New Issue
Block a user