From af9d8768dcc4d36fffdbe1342b6a1e978709af2b Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Thu, 24 Sep 2020 09:34:22 +0200 Subject: [PATCH] AutoTest: Fix marking for removal and sweeping of Quick Tests If opening and editing a QML file we did no more mark tests of this file as to be removed. In turn we may have got "new" items when e.g. just modifying the name of a function or test case and but did not lose the old one. Broke with 90fd6870c5a. Change-Id: I86917089ffb9d4acb2f735f2f3e0f112d8cdc65a Reviewed-by: David Schulz --- src/plugins/autotest/quick/quicktesttreeitem.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/autotest/quick/quicktesttreeitem.cpp b/src/plugins/autotest/quick/quicktesttreeitem.cpp index 5c6cf57aa93..b70c46b0e41 100644 --- a/src/plugins/autotest/quick/quicktesttreeitem.cpp +++ b/src/plugins/autotest/quick/quicktesttreeitem.cpp @@ -428,6 +428,7 @@ QSet QuickTestTreeItem::internalTargets() const void QuickTestTreeItem::markForRemovalRecursively(const QString &filePath) { + TestTreeItem::markForRemovalRecursively(filePath); auto parser = dynamic_cast(framework()->testParser()); const QString proFile = parser->projectFileForMainCppFile(filePath); if (!proFile.isEmpty()) {