add quit option
This commit is contained in:
parent
c53108bb25
commit
ed5e9301c4
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue