┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincontextmenu.cpp
diff options
context:
space:
mode:
authorElvis Angelaccio <[email protected]>2017-08-09 22:59:38 +0200
committerElvis Angelaccio <[email protected]>2017-08-09 22:59:38 +0200
commit5481709016a55bda94177217838318e4e3e7d370 (patch)
tree1d16d19373929ac36042c21dfd38e567a8404c87 /src/dolphincontextmenu.cpp
parentf38960e034cf622bc87575e91014404e8128f120 (diff)
Port to KStandardAction::RenameFile
It was introduced in kconfig(widgets) 5.25. Using the standard action results in less code and no need to hardcode the F2 shortcut. Differential Revision: https://phabricator.kde.org/D6777
Diffstat (limited to 'src/dolphincontextmenu.cpp')
-rw-r--r--src/dolphincontextmenu.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp
index 7ee9562ae..b297fb7fb 100644
--- a/src/dolphincontextmenu.cpp
+++ b/src/dolphincontextmenu.cpp
@@ -392,8 +392,7 @@ void DolphinContextMenu::insertDefaultItemActions(const KFileItemListProperties&
addSeparator();
// Insert 'Rename'
- QAction* renameAction = collection->action(QStringLiteral("rename"));
- addAction(renameAction);
+ addAction(collection->action(KStandardAction::name(KStandardAction::RenameFile)));
// Insert 'Move to Trash' and/or 'Delete'
if (properties.supportsDeleting()) {