]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Add an icon for "restore" action
authorShubham Jangra <aryan100jangid@gmail.com>
Mon, 10 Dec 2018 18:19:55 +0000 (23:49 +0530)
committerShubham Jangra <aryan100jangid@gmail.com>
Mon, 10 Dec 2018 18:26:52 +0000 (23:56 +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..439de930aab99b5f7f137dd6d8fa287059ce6282 100644 (file)
@@ -162,7 +162,7 @@ void DolphinContextMenu::openTrashItemContextMenu()
     Q_ASSERT(m_context & TrashContext);
     Q_ASSERT(m_context & ItemContext);
 
     Q_ASSERT(m_context & TrashContext);
     Q_ASSERT(m_context & ItemContext);
 
-    QAction* restoreAction = new QAction(i18nc("@action:inmenu", "Restore"), m_mainWindow);
+    QAction* restoreAction = new QAction(QIcon::fromTheme("restoration"), i18nc("@action:inmenu", "Restore"), m_mainWindow);
     addAction(restoreAction);
 
     QAction* deleteAction = m_mainWindow->actionCollection()->action(KStandardAction::name(KStandardAction::DeleteFile));
     addAction(restoreAction);
 
     QAction* deleteAction = m_mainWindow->actionCollection()->action(KStandardAction::name(KStandardAction::DeleteFile));