From: Kai Uwe Broulik Date: Wed, 10 Oct 2018 14:25:49 +0000 (+0200) Subject: Add proper labels to Trash Emptied notification X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/4de45ee5076b33d13f26a5187fdf8f0e6b38fd6a?ds=inline Add proper labels to Trash Emptied notification It is not shown by default but when the user enables it, it should show something sensible. Differential Revision: https://phabricator.kde.org/D15589 --- diff --git a/src/trash/dolphintrash.cpp b/src/trash/dolphintrash.cpp index 749d0d481..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()) @@ -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; }