summaryrefslogtreecommitdiffstats
path: root/gui/consolewindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/consolewindow.cpp')
-rw-r--r--gui/consolewindow.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/gui/consolewindow.cpp b/gui/consolewindow.cpp
index f2bc662a..f95d2742 100644
--- a/gui/consolewindow.cpp
+++ b/gui/consolewindow.cpp
@@ -11,6 +11,7 @@ ConsoleWindow::ConsoleWindow(MinecraftProcess *mcproc, QWidget *parent) :
proc(mcproc)
{
ui->setupUi(this);
+ connect(mcproc, SIGNAL(ended()), this, SLOT(onEnded()));
}
ConsoleWindow::~ConsoleWindow()
@@ -91,4 +92,9 @@ void ConsoleWindow::on_btnKillMinecraft_clicked()
else
ui->btnKillMinecraft->setEnabled(true);
r_u_sure.close();
-} \ No newline at end of file
+}
+
+void ConsoleWindow::onEnded()
+{
+ ui->btnKillMinecraft->setEnabled(false);
+}