cleanup: model isn't used in the lambda

Simply cleaning up a warning.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-10-26 07:25:51 -07:00
parent aa5f2e7c73
commit f8f83a9986

View file

@ -73,7 +73,7 @@ void FilterWidget::updatePresetMenu()
for (int i = 0; i < count; ++i) {
QModelIndex idx = model->index(i, FilterPresetModel::NAME);
QString name = model->data(idx, Qt::DisplayRole).value<QString>();
loadFilterPresetMenu->addAction(name, [this,i,model]() { selectPreset(i); });
loadFilterPresetMenu->addAction(name, [this,i]() { selectPreset(i); });
}
ui.loadSetButton->setMenu(loadFilterPresetMenu.get());
}