all repos — mgba @ 9efd8f245235c9786299f16a9a38bc1409ed3623

mGBA Game Boy Advance Emulator

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
commit

9efd8f245235c9786299f16a9a38bc1409ed3623

parent

e2901db7c1556fabc140395600ac86abf6806a40

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/platform/qt/Window.cppsrc/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;