X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/f16fbcba4e9ed3cd48cb2c1a40c01daf1d511f4b..e133c4557ecc37ed3f7e1b9:/src/trash/dolphintrash.cpp diff --git a/src/trash/dolphintrash.cpp b/src/trash/dolphintrash.cpp index 10d9badf5..749d0d481 100644 --- a/src/trash/dolphintrash.cpp +++ b/src/trash/dolphintrash.cpp @@ -40,8 +40,9 @@ Trash::Trash() bool isTrashEmpty = m_trashDirLister->items().isEmpty(); emit emptinessChanged(isTrashEmpty); }; - connect(m_trashDirLister, static_cast(&KDirLister::completed), trashDirContentChanged); - m_trashDirLister->openUrl(QStringLiteral("trash:/")); + connect(m_trashDirLister, static_cast(&KDirLister::completed), this, trashDirContentChanged); + connect(m_trashDirLister, &KDirLister::itemsDeleted, this, trashDirContentChanged); + m_trashDirLister->openUrl(QUrl(QStringLiteral("trash:/"))); } Trash::~Trash()