From d447d42bf2684b6021ec8238f46b59dc7a31b9ce Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Mon, 26 Feb 2018 18:05:55 +0100 Subject: Fix exit code for failed multi-config builds If one of the configurations failed and another one succeeded, then we would return with exit code zero if the successful configuration finished after the failed one. Change-Id: If46798d3d145eff45e9e22652fda8e16993794e6 Reviewed-by: Joerg Bornemann --- src/app/qbs/commandlinefrontend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/qbs/commandlinefrontend.cpp b/src/app/qbs/commandlinefrontend.cpp index dd26846f4..9ee1248e7 100644 --- a/src/app/qbs/commandlinefrontend.cpp +++ b/src/app/qbs/commandlinefrontend.cpp @@ -254,7 +254,7 @@ void CommandLineFrontend::handleJobFinished(bool success, AbstractJob *job) // fall through case BuildCommandType: case CleanCommandType: - qApp->quit(); + qApp->exit(m_cancelStatus == CancelStatusNone ? EXIT_SUCCESS : EXIT_FAILURE); break; default: Q_ASSERT_X(false, Q_FUNC_INFO, "Missing case in switch statement"); -- cgit v1.2.3