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
This commit is contained in:
Roman Inflianskas 2018-03-10 22:29:26 +03:00
parent 69239fdf41
commit c0797e8ade

View 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:/"));
}