diff --git a/src/util/externalcommandhelper.cpp b/src/util/externalcommandhelper.cpp index 5be2ec7..feabfe8 100644 --- a/src/util/externalcommandhelper.cpp +++ b/src/util/externalcommandhelper.cpp @@ -20,6 +20,7 @@ #include "externalcommand_whitelist.h" #include +#include #include #include #include @@ -82,6 +83,11 @@ ActionReply ExternalCommandHelper::init(const QVariantMap& args) m_loop->exec(); reply.addData(QStringLiteral("success"), true); + // Also end the application loop started by KAuth's main() code. Our loop + // exits when our client disappears. Without client we have no reason to + // live. + qApp->quit(); + return reply; }