AutoTest: Fix marking for removal for second level items

Items that will be marked for possible removal on first level
forgot to mark their childrens which led to keeping them when
sweeping although they should get removed if they were not
found again.

Change-Id: Ib364823ee60d31370331b090c776799ca5f663bf
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
Christian Stenger
2016-04-18 13:09:49 +02:00
parent 397ebcac92
commit ed6f4133e8

View File

@@ -631,7 +631,7 @@ void TestTreeModel::markForRemoval(const QString &filePath)
TestTreeItem *child = root->childItem(childRow);
// Qt + named Quick Tests
if (child->filePath() == filePath) {
child->markForRemoval(true);
child->markForRemovalRecursively(true);
} else {
// unnamed Quick Tests and GTest and Qt Tests with separated source/header
int grandChildRow = child->childCount() - 1;