From c3b238bbe924f5c58496407ceb9f90c88c0738fa Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Sun, 22 Nov 2020 22:19:21 +0100 Subject: Move repetitive contextmenu related logic in one place This makes a bit easier to handle the stuff. Also we don't need the `addVersionControlPluginActions` utility method and we can put it in the new utility method instead. --- src/dolphincontextmenu.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/dolphincontextmenu.h') diff --git a/src/dolphincontextmenu.h b/src/dolphincontextmenu.h index b93df2b61..523c0555a 100644 --- a/src/dolphincontextmenu.h +++ b/src/dolphincontextmenu.h @@ -107,11 +107,6 @@ private: */ void addOpenWithActions(KFileItemActions& fileItemActions); - /** - * Adds actions that are provided by a KVersionControlPlugin. - */ - void addVersionControlPluginActions(); - /** * Adds custom actions e.g. like the "[x] Expandable Folders"-action * provided in the details view. @@ -119,6 +114,11 @@ private: void addCustomActions(); private: + /** + * Add services, custom actions, plugins and version control items to the menu + */ + void addAdditionalActions(KFileItemActions &fileItemActions, const KFileItemListProperties &props); + struct Entry { int type; -- cgit v1.3