diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-10-26 07:25:51 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-10-26 19:27:03 -0700 |
commit | f8f83a9986917de1f879abd474330812c4a1e51a (patch) | |
tree | d6f456185991a99fbe9a894f7ee7f2f220f68a0d /desktop-widgets/filterwidget.cpp | |
parent | aa5f2e7c735e1b9a00647a9a6b6797044c60ec4a (diff) | |
download | subsurface-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.cpp | 2 |
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()); } |