diff --git a/src/webui/api/appcontroller.cpp b/src/webui/api/appcontroller.cpp index a535c964b..410499ec9 100644 --- a/src/webui/api/appcontroller.cpp +++ b/src/webui/api/appcontroller.cpp @@ -91,12 +91,13 @@ void AppController::buildInfoAction() void AppController::shutdownAction() { - qDebug() << "Shutdown request from Web UI"; - - // Special case handling for shutdown, we + // Special handling for shutdown, we // need to reply to the Web UI before // actually shutting down. - QTimer::singleShot(100ms, qApp, &QCoreApplication::quit); + QTimer::singleShot(100ms, qApp, []() + { + QCoreApplication::exit(); + }); } void AppController::preferencesAction()