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
This commit is contained in:
Kai Uwe Broulik 2014-12-09 23:22:57 +01:00
parent 23b590b90c
commit 5e17e3fd1c

View File

@ -241,11 +241,14 @@ void AppletPrivate::askDestroy()
Plasma::Containment *asContainment = qobject_cast<Plasma::Containment *>(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."));
}