mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-24 22:15:57 +03:00
Merge pull request #1884 from nicolasfella/menuaction
[dolphin] Use menuAction() instead of manual creation
This commit is contained in:
commit
3626715394
1 changed files with 4 additions and 6 deletions
|
@ -90,12 +90,10 @@ public:
|
|||
delete menu;
|
||||
return {};
|
||||
}
|
||||
|
||||
auto menuaction = new QAction(parentWidget);
|
||||
menuaction->setText(helper->contextMenuTitle());
|
||||
menuaction->setIcon(QIcon::fromTheme(helper->contextMenuIconName()));
|
||||
menuaction->setMenu(menu);
|
||||
return { menuaction };
|
||||
|
||||
menu->setTitle(helper->contextMenuTitle());
|
||||
menu->setIcon(QIcon::fromTheme(helper->contextMenuIconName()));
|
||||
return { menu->menuAction() };
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue