Skip to content

Commit 9f74c2d

Browse files
authored
fix #14813 crash: recheck in gui sometimes crashes (#8628)
1 parent 49b8c2a commit 9f74c2d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

gui/resultstree.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,8 @@ void ResultsTree::clear(const QString &filename)
427427

428428
if (stripped == fileItem->text() ||
429429
filename == fileItem->errorItem->file0) {
430-
mModel->removeRow(i);
431430
mErrorList.removeAll(fileItem->errorItem->toString());
431+
mModel->removeRow(i);
432432
break;
433433
}
434434
}
@@ -445,8 +445,8 @@ void ResultsTree::clearRecheckFile(const QString &filename)
445445
QString storedfile = fileItem->getErrorPathItem().file;
446446
storedfile = ((!mCheckPath.isEmpty() && storedfile.startsWith(mCheckPath)) ? storedfile.mid(mCheckPath.length() + 1) : storedfile);
447447
if (actualfile == storedfile) {
448-
mModel->removeRow(i);
449448
mErrorList.removeAll(fileItem->errorItem->toString());
449+
mModel->removeRow(i);
450450
break;
451451
}
452452
}

0 commit comments

Comments
 (0)