From 9efd8f245235c9786299f16a9a38bc1409ed3623 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sat, 18 Oct 2014 05:07:45 -0700 Subject: [PATCH] Close the savestate window, not just hiding it, when we shut things down --- src/platform/qt/Window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/qt/Window.cpp b/src/platform/qt/Window.cpp index 2ebd987f0..b9066d78b 100644 --- a/src/platform/qt/Window.cpp +++ b/src/platform/qt/Window.cpp @@ -221,8 +221,8 @@ void Window::openStateWindow(LoadSave ls) { } bool wasPaused = m_controller->isPaused(); m_stateWindow = new LoadSaveState(m_controller); - connect(this, SIGNAL(shutdown()), m_stateWindow, SLOT(hide())); - connect(m_controller, SIGNAL(gameStopped(GBAThread*)), m_stateWindow, SLOT(hide())); + connect(this, SIGNAL(shutdown()), m_stateWindow, SLOT(close())); + connect(m_controller, SIGNAL(gameStopped(GBAThread*)), m_stateWindow, SLOT(close())); connect(m_stateWindow, &LoadSaveState::closed, [this]() { m_screenWidget->layout()->removeWidget(m_stateWindow); m_stateWindow = nullptr;