mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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:
parent
aa5f2e7c73
commit
f8f83a9986
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue