From 5d037396ee4c1244872d91b59d29acaee9882c9f Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Thu, 18 Mar 2021 22:03:47 +0100 Subject: [PATCH] Remove
from notification text The notification spec does not specify that the server must support
and thus it can show up literally in the notification. Since we already have a \n we can simply remove it --- daemon/kdeconnectd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/kdeconnectd.cpp b/daemon/kdeconnectd.cpp index 897e97e0e..5effe65f0 100644 --- a/daemon/kdeconnectd.cpp +++ b/daemon/kdeconnectd.cpp @@ -49,7 +49,7 @@ public: notification->setIconName(QStringLiteral("dialog-information")); notification->setComponentName(QStringLiteral("kdeconnect")); notification->setTitle(QStringLiteral("KDE Connect")); - notification->setText(i18n("Pairing request from %1\n
Key: %2...", device->name().toHtmlEscaped(), QString::fromUtf8(device->verificationKey().left(8)))); + notification->setText(i18n("Pairing request from %1\nKey: %2...", device->name().toHtmlEscaped(), QString::fromUtf8(device->verificationKey().left(8)))); notification->setDefaultAction(i18n("Open")); notification->setActions(QStringList() << i18n("Accept") << i18n("Reject") << i18n("View key")); connect(notification, &KNotification::action1Activated, device, &Device::acceptPairing);