Don't leak QMenu in fileitemactionplugin

REVIEW: 128091
This commit is contained in:
Elvis Angelaccio 2016-06-03 18:50:45 +02:00
parent 252ea4ba20
commit 1290296e5c

View file

@ -73,7 +73,7 @@ QList<QAction*> SendFileItemAction::actions(const KFileItemListProperties& fileI
if (actions.count() > 1) {
QAction *menuAction = new QAction(QIcon::fromTheme("preferences-system-network"), i18n("Send via KDE Connect"), parentWidget);
QMenu *menu = new QMenu();
QMenu *menu = new QMenu(parentWidget);
menu->addActions(actions);
menuAction->setMenu(menu);
return QList<QAction*>() << menuAction;