]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Update trash icon after restore operation
authorRoman Inflianskas <infroma@gmail.com>
Sat, 10 Mar 2018 19:29:26 +0000 (22:29 +0300)
committerRoman Inflianskas <infroma@gmail.com>
Sun, 11 Mar 2018 16:47:31 +0000 (19:47 +0300)
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

index cb2e3be665ecd607741e7facdedd7d43c25c5153..8157094401ee4ba24cd0178de21de7a997885497 100644 (file)
@@ -41,6 +41,7 @@ Trash::Trash()
         emit emptinessChanged(isTrashEmpty);
     };
     connect(m_trashDirLister, static_cast<void(KDirLister::*)()>(&KDirLister::completed), this, trashDirContentChanged);
+    connect(m_trashDirLister, &KDirLister::itemsDeleted, this, trashDirContentChanged);
     m_trashDirLister->openUrl(QStringLiteral("trash:/"));
 }