From f8f83a9986917de1f879abd474330812c4a1e51a Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 26 Oct 2020 07:25:51 -0700 Subject: cleanup: model isn't used in the lambda Simply cleaning up a warning. Signed-off-by: Dirk Hohndel --- desktop-widgets/filterwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); - loadFilterPresetMenu->addAction(name, [this,i,model]() { selectPreset(i); }); + loadFilterPresetMenu->addAction(name, [this,i]() { selectPreset(i); }); } ui.loadSetButton->setMenu(loadFilterPresetMenu.get()); } -- cgit v1.2.3-70-g09d2