From e3c4592577b0e343693bb161a982316eab32fdf4 Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Wed, 24 May 2017 23:22:30 +0200 Subject: [PATCH] Doesn't seem to like starting a process in the callback --- indicator/main.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/indicator/main.cpp b/indicator/main.cpp index 604ced3fd..7028889e5 100644 --- a/indicator/main.cpp +++ b/indicator/main.cpp @@ -54,15 +54,14 @@ int main(int argc, char** argv) i18n("(C) 2016 Aleix Pol Gonzalez")); KAboutData::setApplicationData(about); - KDBusService dbusService(KDBusService::Unique); - - DevicesModel model; - model.setDisplayFilter(DevicesModel::Reachable | DevicesModel::Paired); - #ifdef Q_OS_WIN QProcess::startDetached("kdeconnectd.exe"); #endif + KDBusService dbusService(KDBusService::Unique); + + DevicesModel model; + model.setDisplayFilter(DevicesModel::Reachable | DevicesModel::Paired); QMenu *menu = new QMenu; DaemonDbusInterface iface; @@ -73,9 +72,6 @@ int main(int argc, char** argv) KCMultiDialog dialog; dialog.addModule("kcm_kdeconnect"); dialog.exec(); -#ifdef Q_OS_WIN - QProcess::startDetached("kdeconnectd.exe"); -#endif }); for (int i=0, count = model.rowCount(); i