┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Uwe Broulik <[email protected]>2018-10-10 16:25:49 +0200
committerKai Uwe Broulik <[email protected]>2018-10-10 16:25:49 +0200
commit4de45ee5076b33d13f26a5187fdf8f0e6b38fd6a (patch)
tree9c5a7a0bc884778dd74de5f2afff3e2c40524bff
parentd68d7b622666496ae2a051ccf810dbf840af9e45 (diff)
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
-rw-r--r--src/trash/dolphintrash.cpp8
1 files changed, 5 insertions, 3 deletions
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 <KNotification>
#include <KConfig>
#include <KConfigGroup>
-
+#include <KLocalizedString>
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;
}