forked from qt-creator/qt-creator
AutoTest: Rename results executable
Rename member to better reflect its meaning. It is used as an identifier and might be something else than an executable. Change-Id: I082e3caaa3d94fcd7ab26ebc43bb0eb6da136d57 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
committed by
David Schulz
parent
1f3381a3c2
commit
78bd3f9ec3
@@ -311,13 +311,13 @@ TestResultItem *TestResultModel::findParentItemFor(const TestResultItem *item,
|
||||
TestResultItem *root = startItem ? const_cast<TestResultItem *>(startItem) : nullptr;
|
||||
const TestResult *result = item->testResult();
|
||||
const QString &name = result->name();
|
||||
const QString &executable = result->executable();
|
||||
const QString &id = result->id();
|
||||
|
||||
if (root == nullptr && !name.isEmpty()) {
|
||||
for (int row = rootItem()->childCount() - 1; row >= 0; --row) {
|
||||
TestResultItem *tmp = static_cast<TestResultItem *>(rootItem()->childAt(row));
|
||||
auto tmpTestResult = tmp->testResult();
|
||||
if (tmpTestResult->executable() == executable && tmpTestResult->name() == name) {
|
||||
if (tmpTestResult->id() == id && tmpTestResult->name() == name) {
|
||||
root = tmp;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user