summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/filterwidget.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-26 07:25:51 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-26 19:27:03 -0700
commitf8f83a9986917de1f879abd474330812c4a1e51a (patch)
treed6f456185991a99fbe9a894f7ee7f2f220f68a0d /desktop-widgets/filterwidget.cpp
parentaa5f2e7c735e1b9a00647a9a6b6797044c60ec4a (diff)
downloadsubsurface-f8f83a9986917de1f879abd474330812c4a1e51a.tar.gz
cleanup: model isn't used in the lambda
Simply cleaning up a warning. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/filterwidget.cpp')
-rw-r--r--desktop-widgets/filterwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/filterwidget.cpp b/desktop-widgets/filterwidget.cpp
index 96797bcea..170b0d1ac 100644
--- a/desktop-widgets/filterwidget.cpp
+++ b/desktop-widgets/filterwidget.cpp
@@ -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());
}