HTML-escape applet name in undo notification

This commit is contained in:
Kai Uwe Broulik 2017-08-28 16:51:22 +02:00
parent b02c92fe5c
commit 3e284c2404

View File

@ -279,7 +279,7 @@ void AppletPrivate::askDestroy()
if (!q->isContainment()) {
deleteNotification->setTitle(i18n("Widget Removed"));
deleteNotification->setText(i18n("The widget \"%1\" has been removed.", q->title()));
deleteNotification->setText(i18n("The widget \"%1\" has been removed.", q->title().toHtmlEscaped()));
} else if (asContainment && (asContainment->containmentType() == Types::PanelContainment || asContainment->containmentType() == Types::CustomPanelContainment)) {
deleteNotification->setTitle(i18n("Panel Removed"));
deleteNotification->setText(i18n("A panel has been removed."));