Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Fella <nicolas.fella@gmx.de>2020-03-21 04:08:21 +0300
committerNicolas Fella <nicolas.fella@gmx.de>2020-03-21 04:09:48 +0300
commita482e3c83485b53152844f8ca1192c241cce9758 (patch)
tree2a548340c512d9924551ccf9cfe127dffc24d77d /shell_integration
parent3ca586c464af9acd9506ad39232fd75251ee1636 (diff)
[dolphin] Don't manually create menuAction
Use menuAction() from QMenu Signed-off-by: Nicolas Fella <nicolas.fella@gmx.de>
Diffstat (limited to 'shell_integration')
-rw-r--r--shell_integration/dolphin/ownclouddolphinactionplugin.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/shell_integration/dolphin/ownclouddolphinactionplugin.cpp b/shell_integration/dolphin/ownclouddolphinactionplugin.cpp
index 8b306ba95..c8f918586 100644
--- a/shell_integration/dolphin/ownclouddolphinactionplugin.cpp
+++ b/shell_integration/dolphin/ownclouddolphinactionplugin.cpp
@@ -91,10 +91,8 @@ public:
return {};
}
- auto menuaction = new QAction(parentWidget);
- menuaction->setText(helper->contextMenuTitle());
- menuaction->setMenu(menu);
- return { menuaction };
+ menu->setTitle(helper->contextMenuTitle());
+ return { menu->menuAction() };
}