]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Add an icon for "restore" action
authorShubham Jangra <aryan100jangid@gmail.com>
Mon, 10 Dec 2018 17:49:09 +0000 (23:19 +0530)
committerShubham Jangra <aryan100jangid@gmail.com>
Mon, 10 Dec 2018 17:58:45 +0000 (23:28 +0530)
Summary:
Before:
{F6469103}

After:
{F6469104}

Test Plan:
1. Go to Trash

2. Right click any item.

Reviewers: ngraham

Reviewed By: ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D17490

src/dolphincontextmenu.cpp

index 500eafee14d8edd505faeb4977b7f12d0afc5880..ca561b5c751bb5616c25da222516612318fc541f 100644 (file)
@@ -163,6 +163,7 @@ void DolphinContextMenu::openTrashItemContextMenu()
     Q_ASSERT(m_context & ItemContext);
 
     QAction* restoreAction = new QAction(i18nc("@action:inmenu", "Restore"), m_mainWindow);
+    restoreAction->setShortcut(Qt::CTRL + Qt::Key_R);
     addAction(restoreAction);
 
     QAction* deleteAction = m_mainWindow->actionCollection()->action(KStandardAction::name(KStandardAction::DeleteFile));