aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest/testtreeitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/autotest/testtreeitem.cpp')
-rw-r--r--src/plugins/autotest/testtreeitem.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/autotest/testtreeitem.cpp b/src/plugins/autotest/testtreeitem.cpp
index 884544e3b24..f18adb812d4 100644
--- a/src/plugins/autotest/testtreeitem.cpp
+++ b/src/plugins/autotest/testtreeitem.cpp
@@ -224,11 +224,11 @@ void TestTreeItem::markForRemovalRecursively(bool mark)
childItem(row)->markForRemovalRecursively(mark);
}
-void TestTreeItem::markForRemovalRecursively(const FilePath &filepath)
+void TestTreeItem::markForRemovalRecursively(const QSet<FilePath> &filePaths)
{
- bool mark = filePath() == filepath;
- forFirstLevelChildItems([&mark, &filepath](TestTreeItem *child) {
- child->markForRemovalRecursively(filepath);
+ bool mark = filePaths.contains(filePath());
+ forFirstLevelChildItems([&mark, &filePaths](TestTreeItem *child) {
+ child->markForRemovalRecursively(filePaths);
mark &= child->markedForRemoval();
});
markForRemoval(mark);