diff --git a/daemon/kdeconnectd.cpp b/daemon/kdeconnectd.cpp index 1d174dac0..4aeba2a65 100644 --- a/daemon/kdeconnectd.cpp +++ b/daemon/kdeconnectd.cpp @@ -28,6 +28,7 @@ #include #include #include +#include #include #include @@ -65,9 +66,13 @@ public: notification->setComponentName(QStringLiteral("kdeconnect")); notification->setTitle(QStringLiteral("KDE Connect")); notification->setText(i18n("Pairing request from %1", device->name().toHtmlEscaped())); + notification->setDefaultAction(i18n("Open")); notification->setActions(QStringList() << i18n("Accept") << i18n("Reject")); connect(notification, &KNotification::action1Activated, device, &Device::acceptPairing); connect(notification, &KNotification::action2Activated, device, &Device::rejectPairing); + connect(notification, QOverload<>::of(&KNotification::activated), this, []{ + QProcess::startDetached(QStringLiteral("kdeconnect-settings")); + }); notification->sendEvent(); }