Don't leak QMenu in fileitemactionplugin
REVIEW: 128091
This commit is contained in:
parent
252ea4ba20
commit
1290296e5c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue