summaryrefslogtreecommitdiffstats
path: root/gui/ConsoleWindow.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-12-10 23:48:20 +0100
committerPetr Mrázek <peterix@gmail.com>2013-12-10 23:48:20 +0100
commitfa2ba01a17c650e828b03d29622aadb3638e702f (patch)
tree8b559cf7465000f1880d1f1f327d10503a0c079a /gui/ConsoleWindow.cpp
parentab69c1b9e6c25e92ded4a6ac6774e468a2e08b7b (diff)
downloadMultiMC-fa2ba01a17c650e828b03d29622aadb3638e702f.tar
MultiMC-fa2ba01a17c650e828b03d29622aadb3638e702f.tar.gz
MultiMC-fa2ba01a17c650e828b03d29622aadb3638e702f.tar.lz
MultiMC-fa2ba01a17c650e828b03d29622aadb3638e702f.tar.xz
MultiMC-fa2ba01a17c650e828b03d29622aadb3638e702f.zip
Do not let the console close while Minecraft is running (prevent return to main window)
Diffstat (limited to 'gui/ConsoleWindow.cpp')
-rw-r--r--gui/ConsoleWindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/ConsoleWindow.cpp b/gui/ConsoleWindow.cpp
index 5db4442e..1a0f352d 100644
--- a/gui/ConsoleWindow.cpp
+++ b/gui/ConsoleWindow.cpp
@@ -47,6 +47,7 @@ ConsoleWindow::ConsoleWindow(MinecraftProcess *mcproc, QWidget *parent)
{
show();
}
+ setMayClose(false);
}
ConsoleWindow::~ConsoleWindow()
@@ -174,6 +175,7 @@ void ConsoleWindow::onEnded(BaseInstance *instance, int code, QProcess::ExitStat
}
if(!isVisible())
show();
+ setMayClose(true);
}
void ConsoleWindow::onLaunchFailed(BaseInstance *instance)
@@ -181,6 +183,7 @@ void ConsoleWindow::onLaunchFailed(BaseInstance *instance)
ui->btnKillMinecraft->setEnabled(false);
if(!isVisible())
show();
+ setMayClose(true);
}
void ConsoleWindow::on_btnPaste_clicked()