From 5e17e3fd1c2848cf95e0ec7e955f914127adab09 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Tue, 9 Dec 2014 23:22:57 +0100 Subject: [PATCH] Give undo notifications a title The "Plasma" (default put in there by the notification applet because it has no title) is not really descriptive. REVIEW: 121071 --- src/plasma/private/applet_p.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plasma/private/applet_p.cpp b/src/plasma/private/applet_p.cpp index a4f7c1c2c..fa1478469 100644 --- a/src/plasma/private/applet_p.cpp +++ b/src/plasma/private/applet_p.cpp @@ -241,11 +241,14 @@ void AppletPrivate::askDestroy() Plasma::Containment *asContainment = qobject_cast(q); if (!q->isContainment()) { + deleteNotification->setTitle(i18n("Widget Removed")); deleteNotification->setText(i18n("The widget \"%1\" has been removed.", q->title())); } else if (asContainment && (asContainment->containmentType() == Types::PanelContainment || asContainment->containmentType() == Types::CustomPanelContainment)) { + deleteNotification->setTitle(i18n("Panel Removed")); deleteNotification->setText(i18n("A Panel has been removed.")); //This will never happen with our current shell, but could with a custom one } else { + deleteNotification->setTitle(i18n("Desktop Removed")); deleteNotification->setText(i18n("A Desktop has been removed.")); }