┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinremoveaction.cpp
diff options
context:
space:
mode:
authorElvis Angelaccio <[email protected]>2017-08-09 23:15:30 +0200
committerElvis Angelaccio <[email protected]>2017-08-09 23:15:30 +0200
commitd74f62208caf110a501ccc2243ba05eef4df4ae7 (patch)
treee0c3d0dc68240cc47ae063fc361fb6fd1146ffc9 /src/dolphinremoveaction.cpp
parent5481709016a55bda94177217838318e4e3e7d370 (diff)
Drop duplicate i18n strings
This comment (introduced in commit 39f89141b06c) no longer seems to apply, so drop the duplicate translations and just use the default strings from kconfigwidgets. Differential Revision: https://phabricator.kde.org/D6779
Diffstat (limited to 'src/dolphinremoveaction.cpp')
-rw-r--r--src/dolphinremoveaction.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/dolphinremoveaction.cpp b/src/dolphinremoveaction.cpp
index 7e8a353f0..c471b2df6 100644
--- a/src/dolphinremoveaction.cpp
+++ b/src/dolphinremoveaction.cpp
@@ -42,18 +42,14 @@ void DolphinRemoveAction::slotRemoveActionTriggered()
void DolphinRemoveAction::update()
{
Q_ASSERT(m_collection);
- // Using setText(action->text()) does not apply the &-shortcut.
- // This is only done until the original action has been shown at least once. To
- // bypass this issue, the text and &-shortcut is applied manually.
if (qApp->queryKeyboardModifiers() & Qt::ShiftModifier) {
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(KStandardAction::name(KStandardAction::MoveToTrash)) : 0;
- setText(i18nc("@action:inmenu", "&Move to Trash"));
}
if (m_action) {
+ setText(m_action->text());
setIcon(m_action->icon());
m_collection->setDefaultShortcuts(this, m_action->shortcuts());
setEnabled(m_action->isEnabled());