X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/522000ad8d8caafb0dc192308b876d23cae55048..3bf471e0:/src/trash/dolphintrash.cpp diff --git a/src/trash/dolphintrash.cpp b/src/trash/dolphintrash.cpp index 8684cda06..1446ab388 100644 --- a/src/trash/dolphintrash.cpp +++ b/src/trash/dolphintrash.cpp @@ -22,17 +22,13 @@ Trash::Trash() // The trash icon must always be updated dependent on whether // the trash is empty or not. We use a KDirLister that automatically // watches for changes if the number of items has been changed. -#if KIO_VERSION < QT_VERSION_CHECK(5, 82, 0) - m_trashDirLister->setAutoErrorHandlingEnabled(false, nullptr); -#else m_trashDirLister->setAutoErrorHandlingEnabled(false); -#endif m_trashDirLister->setDelayedMimeTypes(true); auto trashDirContentChanged = [this]() { bool isTrashEmpty = m_trashDirLister->items().isEmpty(); Q_EMIT emptinessChanged(isTrashEmpty); }; - connect(m_trashDirLister, QOverload<>::of(&KCoreDirLister::completed), this, trashDirContentChanged); + connect(m_trashDirLister, &KCoreDirLister::completed, this, trashDirContentChanged); connect(m_trashDirLister, &KDirLister::itemsDeleted, this, trashDirContentChanged); m_trashDirLister->openUrl(QUrl(QStringLiteral("trash:/"))); }