mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 19:58:56 +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
|
@ -91,11 +91,9 @@ public:
|
|||
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