diff --git a/src/plugins/autotest/testtreeitem.cpp b/src/plugins/autotest/testtreeitem.cpp index d3a1207dbed..c780bea089d 100644 --- a/src/plugins/autotest/testtreeitem.cpp +++ b/src/plugins/autotest/testtreeitem.cpp @@ -440,11 +440,11 @@ bool GoogleTestTreeItem::modifyTestSetContent(const QString &fileName, TestTreeItem *GoogleTestTreeItem::findChildByNameStateAndFile(const QString &name, GoogleTestTreeItem::TestStates state, - const QString &referencingFile) + const QString &proFile) { - return findChildBy([name, state, referencingFile](const TestTreeItem *other) -> bool { + return findChildBy([name, state, proFile](const TestTreeItem *other) -> bool { GoogleTestTreeItem *gtestItem = const_cast(other)->asGoogleTestTreeItem(); - return other->proFile() == referencingFile + return other->proFile() == proFile && other->name() == name && gtestItem->state() == state; });