forked from qt-creator/qt-creator
Fix removing unnamed quick tests...
...this was wrong especially when closing (the last) open project that contained unnamed quick tests. Change-Id: I6d030b6219d9f397a6ffb51a985ef4147eebec8a Reviewed-by: David Schulz <david.schulz@theqtcompany.com> Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -615,19 +615,15 @@ QString TestTreeModel::getMainFileForUnnamedQuickTest(const QString &qmlFile) co
|
||||
return QString();
|
||||
}
|
||||
|
||||
void TestTreeModel::qmlFilesAndFunctionNamesForMainFile(const QString &mainFile,
|
||||
QSet<QString> *filePaths,
|
||||
QList<QString> *functionNames) const
|
||||
void TestTreeModel::qmlFilesForMainFile(const QString &mainFile, QSet<QString> *filePaths) const
|
||||
{
|
||||
TestTreeItem *unnamed = unnamedQuickTests();
|
||||
if (!unnamed)
|
||||
return;
|
||||
for (int i = 0; i < unnamed->childCount(); ++i) {
|
||||
const TestTreeItem *child = unnamed->child(i);
|
||||
if (child->mainFile() == mainFile) {
|
||||
if (child->mainFile() == mainFile)
|
||||
filePaths->insert(child->filePath());
|
||||
functionNames->append(child->name());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user