summaryrefslogtreecommitdiffstats
path: root/gui/consolewindow.cpp
diff options
context:
space:
mode:
authorStiepen22 <stiepen22@gmx.de>2013-09-06 23:58:10 +0200
committerStiepen22 <stiepen22@gmx.de>2013-09-06 23:58:10 +0200
commitc985f68b729454b9f3c7188e0b2f1af4530411be (patch)
tree0ae1c5017e748c23eaf6549639034974eb0990bd /gui/consolewindow.cpp
parent3fd2d025a1aa0bbc72ac69a34828ef5942255143 (diff)
downloadMultiMC-c985f68b729454b9f3c7188e0b2f1af4530411be.tar
MultiMC-c985f68b729454b9f3c7188e0b2f1af4530411be.tar.gz
MultiMC-c985f68b729454b9f3c7188e0b2f1af4530411be.tar.lz
MultiMC-c985f68b729454b9f3c7188e0b2f1af4530411be.tar.xz
MultiMC-c985f68b729454b9f3c7188e0b2f1af4530411be.zip
Made main window hide on instace exit
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();
}