proper icon in notifications

Change-Id: I10832bf91a7a5a605ae27d6a417931f9462c1b78
This commit is contained in:
Marco Martin 2014-10-30 18:12:48 +01:00
parent 73500516ff
commit cef6b23e74

View File

@ -237,6 +237,7 @@ void AppletPrivate::askDestroy()
//or direct action
deleteNotification = new KNotification("plasmoidDeleted", KNotification::Persistent, 0);
QStringList actions;
deleteNotification->setIconName(q->icon());
deleteNotification->setText(i18n("The widget \"%1\" has been removed.", q->title()));
actions.append(i18n("Undo"));
deleteNotification->setActions(actions);