add quit option

This commit is contained in:
Piyush Aggarwal 2019-07-09 18:34:52 +00:00
parent c53108bb25
commit ed5e9301c4

View file

@ -56,7 +56,8 @@ int main(int argc, char** argv)
KAboutData::setApplicationData(about);
#ifdef Q_OS_WIN
QProcess::startDetached(QStringLiteral("kdeconnectd.exe"));
QProcess kdeconnectd;
kdeconnectd.start(QStringLiteral("kdeconnectd.exe"));
#endif
#ifdef Q_OS_MAC
@ -106,7 +107,7 @@ int main(int argc, char** argv)
}
}
#ifdef Q_OS_MAC
#if (defined Q_OS_MAC || defined Q_OS_WIN)
// Add quit menu
menu->addAction(i18n("Quit"), [](){
QCoreApplication::quit(); // Close this application