diff options
| author | Elvis Angelaccio <[email protected]> | 2017-07-19 00:00:37 +0200 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2017-07-27 16:15:03 +0200 |
| commit | 4b5ea05b6760e9020ab87f1d90071e1a2a8f9e99 (patch) | |
| tree | d1c87653f2ebaecdf0cb5b110b24a7242f4cc3d6 /src/dolphinremoveaction.cpp | |
| parent | 82b2dbd3ec568a6e6fe01a8e75739b25cae25f15 (diff) | |
Port to KStandardAction::MoveToTrash
It was introduced in kconfig(widgets) 5.25. Using the standard action
results in less code and no need to hardcode the Del shortcut.
Test Plan:
- Change shortcut in System Settings -> Shortcuts -> Standard Shortcuts
- Make sure the new shortcut is used by dolphin.
Differential Revision: https://phabricator.kde.org/D6778
Diffstat (limited to 'src/dolphinremoveaction.cpp')
| -rw-r--r-- | src/dolphinremoveaction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dolphinremoveaction.cpp b/src/dolphinremoveaction.cpp index ad00f6286..7e8a353f0 100644 --- a/src/dolphinremoveaction.cpp +++ b/src/dolphinremoveaction.cpp @@ -49,7 +49,7 @@ void DolphinRemoveAction::update() m_action = m_collection ? m_collection->action(KStandardAction::name(KStandardAction::DeleteFile)) : 0; setText(i18nc("@action:inmenu", "&Delete")); } else { - m_action = m_collection ? m_collection->action(QStringLiteral("move_to_trash")) : 0; + m_action = m_collection ? m_collection->action(KStandardAction::name(KStandardAction::MoveToTrash)) : 0; setText(i18nc("@action:inmenu", "&Move to Trash")); } |
