From: Roman Inflianskas Date: Sat, 10 Mar 2018 19:29:26 +0000 (+0300) Subject: Update trash icon after restore operation X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/c0797e8adef58bc57254d86d6f1abaa46d732f19 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 --- diff --git a/src/trash/dolphintrash.cpp b/src/trash/dolphintrash.cpp index cb2e3be66..815709440 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:/")); }