diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-08-21 00:23:20 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-08-21 00:32:32 +0200 |
commit | febf3645d042dd7a5bf488d091286a3efd46a727 (patch) | |
tree | 4e4a2d4a9d7e27dfac3761f6da71c0c27a283f84 /gui | |
parent | 01ca3d6aad30a71b1523291ed59ba6585ad32e9e (diff) | |
download | MultiMC-febf3645d042dd7a5bf488d091286a3efd46a727.tar MultiMC-febf3645d042dd7a5bf488d091286a3efd46a727.tar.gz MultiMC-febf3645d042dd7a5bf488d091286a3efd46a727.tar.lz MultiMC-febf3645d042dd7a5bf488d091286a3efd46a727.tar.xz MultiMC-febf3645d042dd7a5bf488d091286a3efd46a727.zip |
Fix version file problems, fix console window not being destroyed
Diffstat (limited to 'gui')
-rw-r--r-- | gui/ConsoleWindow.cpp | 5 | ||||
-rw-r--r-- | gui/ConsoleWindow.h | 2 |
2 files changed, 6 insertions, 1 deletions
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() +{ + +} diff --git a/gui/ConsoleWindow.h b/gui/ConsoleWindow.h index 97600baa..1b086f1a 100644 --- a/gui/ConsoleWindow.h +++ b/gui/ConsoleWindow.h @@ -27,7 +27,7 @@ class ConsoleWindow : public QMainWindow public: explicit ConsoleWindow(MinecraftProcess *proc, QWidget *parent = 0); - virtual ~ConsoleWindow() {}; + virtual ~ConsoleWindow(); /** * @brief specify if the window is allowed to close |