forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user