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,12 +391,10 @@ 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) {
|
||||||
const QList<Target *> &allTargets = project->targets();
|
const QList<Target *> &allTargets = project->targets();
|
||||||
|
Reference in New Issue
Block a user