From 03bf6a3a96ab893e61d199761ff80a79e0a5cce8 Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Fri, 12 Feb 2016 08:00:05 -0800 Subject: [PATCH] Display the device name, not the link name --- daemon/kdeconnectd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/kdeconnectd.cpp b/daemon/kdeconnectd.cpp index 6dc939bed..180cc5366 100644 --- a/daemon/kdeconnectd.cpp +++ b/daemon/kdeconnectd.cpp @@ -94,7 +94,7 @@ public: KNotification* notification = new KNotification("pairingRequest"); notification->setIconName(QStringLiteral("dialog-information")); notification->setComponentName("kdeconnect"); - notification->setText(i18n("Pairing request from %1", d->deviceLink()->name())); + notification->setText(i18n("Pairing request from %1", getDevice(d->deviceLink()->deviceId())->name())); notification->setActions(QStringList() << i18n("Accept") << i18n("Reject")); connect(notification, &KNotification::ignored, d, &PairingHandler::rejectPairing); connect(notification, &KNotification::action1Activated, d, &PairingHandler::acceptPairing);