X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/c0797e8adef58bc57254d86d6f1abaa46d732f19..d6c086ad04:/src/trash/dolphintrash.cpp diff --git a/src/trash/dolphintrash.cpp b/src/trash/dolphintrash.cpp index 815709440..e4a2d947c 100644 --- a/src/trash/dolphintrash.cpp +++ b/src/trash/dolphintrash.cpp @@ -26,7 +26,7 @@ #include #include #include - +#include Trash::Trash() : m_trashDirLister(new KDirLister()) @@ -42,7 +42,7 @@ Trash::Trash() }; connect(m_trashDirLister, static_cast(&KDirLister::completed), this, trashDirContentChanged); connect(m_trashDirLister, &KDirLister::itemsDeleted, this, trashDirContentChanged); - m_trashDirLister->openUrl(QStringLiteral("trash:/")); + m_trashDirLister->openUrl(QUrl(QStringLiteral("trash:/"))); } Trash::~Trash() @@ -66,8 +66,10 @@ KIO::Job *Trash::empty(QWidget *window) KJobWidgets::setWindow(job, window); job->uiDelegate()->setAutoErrorHandlingEnabled(true); // as long as KIO doesn't do this, do it ourselves - connect(job, &KIO::Job::result, [](){ - KNotification::event(QStringLiteral("Trash: emptied"), QString(), QPixmap(), nullptr, KNotification::DefaultEvent); + connect(job, &KIO::Job::result, []() { + KNotification::event(QStringLiteral("Trash: emptied"), i18n("Trash Emptied"), + i18n("The Trash was emptied."), QStringLiteral("user-trash"), + nullptr, KNotification::DefaultEvent); }); return job; }