X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/e8c3df5f60aae3c34545c4112b9ec1c323ee66fd..9aee5d22513f0367febab54b38b3a7dc58d120bb:/src/dolphinremoveaction.cpp diff --git a/src/dolphinremoveaction.cpp b/src/dolphinremoveaction.cpp index 200fc407d..7ea4e4f79 100644 --- a/src/dolphinremoveaction.cpp +++ b/src/dolphinremoveaction.cpp @@ -29,7 +29,7 @@ DolphinRemoveAction::DolphinRemoveAction(QObject* parent, KActionCollection* col m_collection(collection) { update(); - connect(this, SIGNAL(triggered()), this, SLOT(slotRemoveActionTriggered())); + connect(this, &DolphinRemoveAction::triggered, this, &DolphinRemoveAction::slotRemoveActionTriggered); } void DolphinRemoveAction::slotRemoveActionTriggered() @@ -53,8 +53,9 @@ void DolphinRemoveAction::update() setText(i18nc("@action:inmenu", "&Move to Trash")); } - if (m_action) { + if (m_action) { setIcon(m_action->icon()); - setShortcuts(m_action->shortcuts()); + m_collection->setDefaultShortcuts(this, m_action->shortcuts()); + setEnabled(m_action->isEnabled()); } }