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, {}); } } });