summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--desktop-widgets/filterwidget.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/desktop-widgets/filterwidget.cpp b/desktop-widgets/filterwidget.cpp
index ce03a7934..b6a1429fe 100644
--- a/desktop-widgets/filterwidget.cpp
+++ b/desktop-widgets/filterwidget.cpp
@@ -77,7 +77,10 @@ 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]() { selectPreset(i); });
+ QAction *action = new QAction(loadFilterPresetMenu.get());
+ action->setIconText(name);
+ connect(action, &QAction::triggered, [this,i]() { selectPreset(i); });
+ loadFilterPresetMenu->addAction(action);
}
ui.loadSetButton->setMenu(loadFilterPresetMenu.get());
}