From 9e73243612408b35efac966cbb53fd20e6eb938d Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Sun, 5 Jan 2020 16:31:06 +0100 Subject: [PATCH] Hide notification after it's no longer possible to accept pairing --- daemon/kdeconnectd.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/kdeconnectd.cpp b/daemon/kdeconnectd.cpp index 848190a57..1d174dac0 100644 --- a/daemon/kdeconnectd.cpp +++ b/daemon/kdeconnectd.cpp @@ -60,6 +60,7 @@ public: void askPairingConfirmation(Device* device) override { KNotification* notification = new KNotification(QStringLiteral("pairingRequest"), KNotification::NotificationFlag::Persistent); + QTimer::singleShot(PairingHandler::pairingTimeoutMsec(), notification, &KNotification::close); notification->setIconName(QStringLiteral("dialog-information")); notification->setComponentName(QStringLiteral("kdeconnect")); notification->setTitle(QStringLiteral("KDE Connect"));