summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/ConsoleWindow.cpp5
-rw-r--r--gui/ConsoleWindow.h2
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