diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-05-02 23:48:18 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-05-02 23:48:18 +0200 |
commit | 8e9d5f56b592fd0dd0f54e747a835391a775120d (patch) | |
tree | 9dc8caadb0867dfd1de1aee6563e8974d5fa921f /logic | |
parent | 5779ffd6645ba3fae5abe068d456fc1ee9dd91ff (diff) | |
download | MultiMC-8e9d5f56b592fd0dd0f54e747a835391a775120d.tar MultiMC-8e9d5f56b592fd0dd0f54e747a835391a775120d.tar.gz MultiMC-8e9d5f56b592fd0dd0f54e747a835391a775120d.tar.lz MultiMC-8e9d5f56b592fd0dd0f54e747a835391a775120d.tar.xz MultiMC-8e9d5f56b592fd0dd0f54e747a835391a775120d.zip |
GH-933 map exit code -1 to 'crashed'
Diffstat (limited to 'logic')
-rw-r--r-- | logic/BaseProcess.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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 |