From febf3645d042dd7a5bf488d091286a3efd46a727 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Thu, 21 Aug 2014 00:23:20 +0200 Subject: Fix version file problems, fix console window not being destroyed --- gui/ConsoleWindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gui/ConsoleWindow.cpp') diff --git a/gui/ConsoleWindow.cpp b/gui/ConsoleWindow.cpp index 467008b6..01c1514a 100644 --- a/gui/ConsoleWindow.cpp +++ b/gui/ConsoleWindow.cpp @@ -55,6 +55,7 @@ ConsoleWindow::ConsoleWindow(MinecraftProcess *mcproc, QWidget *parent) : QMainWindow(parent), m_proc(mcproc) { MultiMCPlatform::fixWM_CLASS(this); + setAttribute(Qt::WA_DeleteOnClose); auto instance = m_proc->instance(); auto icon = MMC->icons()->getIcon(instance->iconKey()); @@ -263,3 +264,7 @@ void ConsoleWindow::onLaunchFailed(InstancePtr instance) if (!isVisible()) show(); } +ConsoleWindow::~ConsoleWindow() +{ + +} -- cgit v1.2.3