question: CommitList - correct variable to use?

The lambda captures `model`, but in the code, `mModel` is used.  Either the capture is superfluous, or the usage is incorrect.
This commit is contained in:
Michael Werle 2023-08-29 14:18:21 +09:00
parent fd6efb474d
commit 6ceaa401e2

View File

@ -1186,6 +1186,7 @@ CommitList::CommitList(Index *index, QWidget *parent)
connect(model, &CommitModel::statusFinished, [this, model](bool visible) {
mRestoreSelection = true; // Reset to default
// Fake a selection notification if the diff is visible and selected.
// FIXME: Should we reference `model` or `this->mModel` here?
if (visible && selectionModel()->isSelected(mModel->index(0, 0)))
resetSelection();