Use non-deprecated QProcess method

This commit is contained in:
Nicolas Fella 2020-09-19 15:26:39 +02:00
parent 5d9dad3d7e
commit 4dec116edf

View file

@ -54,7 +54,7 @@ public:
connect(notification, &KNotification::action1Activated, device, &Device::acceptPairing); connect(notification, &KNotification::action1Activated, device, &Device::acceptPairing);
connect(notification, &KNotification::action2Activated, device, &Device::rejectPairing); connect(notification, &KNotification::action2Activated, device, &Device::rejectPairing);
connect(notification, QOverload<>::of(&KNotification::activated), this, []{ connect(notification, QOverload<>::of(&KNotification::activated), this, []{
QProcess::startDetached(QStringLiteral("kdeconnect-settings")); QProcess::startDetached(QStringLiteral("kdeconnect-settings"), {});
}); });
notification->sendEvent(); notification->sendEvent();
} }