From 296de907b5d3783920569098ec8aae50d3075513 Mon Sep 17 00:00:00 2001 From: Piyush Aggarwal Date: Mon, 12 Jul 2021 05:35:16 +0530 Subject: [PATCH] indicator: fix single-click to open app and remove unnecessary capture --- indicator/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indicator/main.cpp b/indicator/main.cpp index 39c08835a..3a79b6331 100644 --- a/indicator/main.cpp +++ b/indicator/main.cpp @@ -139,11 +139,11 @@ int main(int argc, char** argv) QObject::connect(&model, &DevicesModel::rowsChanged, &model, [&systray, &model]() { systray.setToolTip(i18np("%1 device connected", "%1 devices connected", model.rowCount())); }); - QObject::connect(&systray, &QSystemTrayIcon::activated, [&iface](QSystemTrayIcon::ActivationReason reason) { + QObject::connect(&systray, &QSystemTrayIcon::activated, [](QSystemTrayIcon::ActivationReason reason) { if (reason == QSystemTrayIcon::Trigger) { const QString kdeconnectAppExecutable = QStandardPaths::findExecutable(QStringLiteral("kdeconnect-app"), { QCoreApplication::applicationDirPath() }); if (!kdeconnectAppExecutable.isEmpty()) { - QProcess::startDetached(kdeconnectAppExecutable); + QProcess::startDetached(kdeconnectAppExecutable, {}); } } });