mirror of
https://github.com/Murmele/Gittyup.git
synced 2024-09-17 13:37:18 +03:00
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:
parent
fd6efb474d
commit
6ceaa401e2
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user