diff --git a/main_wayland.cpp b/main_wayland.cpp index 6f74ba392f..ecb649bc03 100644 --- a/main_wayland.cpp +++ b/main_wayland.cpp @@ -135,7 +135,7 @@ void ApplicationWayland::createBackend() connect(platform(), &Platform::initFailed, this, [] () { std::cerr << "FATAL ERROR: backend failed to initialize, exiting now" << std::endl; - ::exit(1); + QCoreApplication::exit(1); } ); platform()->init();