aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2021-09-02 16:57:45 +0200
committerChristian Stenger <christian.stenger@qt.io>2021-09-03 07:13:23 +0000
commitb99d7623f30208137d9f676a003ca493a1b74df9 (patch)
tree01575ab57f02049412bc2562c7a29a1b0cefa728 /src/plugins/autotest
parente76f83aa90e8fa16aba175cb6ef5b14fe56555d7 (diff)
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>
Diffstat (limited to 'src/plugins/autotest')
-rw-r--r--src/plugins/autotest/testtreemodel.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/autotest/testtreemodel.cpp b/src/plugins/autotest/testtreemodel.cpp
index b6f979fe33..8992fdeabe 100644
--- a/src/plugins/autotest/testtreemodel.cpp
+++ b/src/plugins/autotest/testtreemodel.cpp
@@ -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) {