From c0797e8adef58bc57254d86d6f1abaa46d732f19 Mon Sep 17 00:00:00 2001 From: Roman Inflianskas Date: Sat, 10 Mar 2018 22:29:26 +0300 Subject: [PATCH] Update trash icon after restore operation Summary: After restoring all the files from the trash, the trash icon remain 'full'. This patch fixes this. BUG: 252483 Reviewers: elvisangelaccio Reviewed By: elvisangelaccio Subscribers: elvisangelaccio, #dolphin Differential Revision: https://phabricator.kde.org/D11216 --- src/trash/dolphintrash.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/trash/dolphintrash.cpp b/src/trash/dolphintrash.cpp index cb2e3be665..8157094401 100644 --- a/src/trash/dolphintrash.cpp +++ b/src/trash/dolphintrash.cpp @@ -41,6 +41,7 @@ Trash::Trash() emit emptinessChanged(isTrashEmpty); }; connect(m_trashDirLister, static_cast(&KDirLister::completed), this, trashDirContentChanged); + connect(m_trashDirLister, &KDirLister::itemsDeleted, this, trashDirContentChanged); m_trashDirLister->openUrl(QStringLiteral("trash:/")); }