summaryrefslogtreecommitdiffstats
path: root/gui/consolewindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/consolewindow.cpp')
-rw-r--r--gui/consolewindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/gui/consolewindow.cpp b/gui/consolewindow.cpp
index f95d2742..04b77285 100644
--- a/gui/consolewindow.cpp
+++ b/gui/consolewindow.cpp
@@ -97,4 +97,5 @@ void ConsoleWindow::on_btnKillMinecraft_clicked()
void ConsoleWindow::onEnded()
{
ui->btnKillMinecraft->setEnabled(false);
+ if (!proc->exitCode()) this->close();
}