diff options
| author | Elvis Angelaccio <[email protected]> | 2017-08-09 22:59:38 +0200 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2017-08-09 22:59:38 +0200 |
| commit | 5481709016a55bda94177217838318e4e3e7d370 (patch) | |
| tree | 1d16d19373929ac36042c21dfd38e567a8404c87 /src/dolphinmainwindow.cpp | |
| parent | f38960e034cf622bc87575e91014404e8128f120 (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/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 47a249c6a..6701fbcfa 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -1308,7 +1308,7 @@ void DolphinMainWindow::updateEditActions() stateChanged(QStringLiteral("has_selection")); KActionCollection* col = actionCollection(); - QAction* renameAction = col->action(QStringLiteral("rename")); + QAction* renameAction = col->action(KStandardAction::name(KStandardAction::RenameFile)); QAction* moveToTrashAction = col->action(KStandardAction::name(KStandardAction::MoveToTrash)); QAction* deleteAction = col->action(KStandardAction::name(KStandardAction::DeleteFile)); QAction* cutAction = col->action(KStandardAction::name(KStandardAction::Cut)); |
