Commit 9174d6bc authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove item

parent 8b5782cd
Pipeline #63953 passed with stage
in 39 minutes and 44 seconds
......@@ -46,8 +46,9 @@ void ConfigureFiltersWidget::slotCustomContextMenuRequested(const QPoint &pos)
if (item) {
QMenu menu(this);
const QString identifier = item->identifier();
menu.addAction(i18n("Remove"), this, [this, identifier]() {
menu.addAction(i18n("Remove"), this, [this, identifier, item]() {
removeFilterInfo(identifier);
delete item;
});
menu.exec(QCursor::pos());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment