From ed6f4133e8b8cae72aaae8ad29af425d5e910cff Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Mon, 18 Apr 2016 13:09:49 +0200 Subject: [PATCH] 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 --- src/plugins/autotest/testtreemodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/autotest/testtreemodel.cpp b/src/plugins/autotest/testtreemodel.cpp index fa69cafe42d..4701e126a66 100644 --- a/src/plugins/autotest/testtreemodel.cpp +++ b/src/plugins/autotest/testtreemodel.cpp @@ -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;