Close the savestate window, not just hiding it, when we shut things down
Jeffrey Pfau jeffrey@endrift.com
Sat, 18 Oct 2014 05:07:45 -0700
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/platform/qt/Window.cpp
→
src/platform/qt/Window.cpp
@@ -221,8 +221,8 @@ return;
} 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;