From 8e9d5f56b592fd0dd0f54e747a835391a775120d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sat, 2 May 2015 23:48:18 +0200 Subject: [PATCH] GH-933 map exit code -1 to 'crashed' --- logic/BaseProcess.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/logic/BaseProcess.cpp b/logic/BaseProcess.cpp index 749efe0a..f1dc89c7 100644 --- a/logic/BaseProcess.cpp +++ b/logic/BaseProcess.cpp @@ -254,7 +254,10 @@ void BaseProcess::finish(int code, ExitStatus status) else { //: Message displayed on instance crashed - emit log(tr("Game crashed with exitcode %1.").arg(code)); + if(code == -1) + emit log(tr("Game crashed.").arg(code)); + else + emit log(tr("Game crashed with exitcode %1.").arg(code)); } } else