mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-21 09:20:13 +00:00
Drop duplicate i18n strings
This comment (introduced in commit 39f89141b0
) 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
This commit is contained in:
parent
5481709016
commit
d74f62208c
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue