Ensure savestate window closes when a game is shut down
Jeffrey Pfau jeffrey@endrift.com
Sat, 18 Oct 2014 04:12:44 -0700
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
src/platform/qt/Window.cpp
→
src/platform/qt/Window.cpp
@@ -220,6 +220,7 @@ }
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(m_stateWindow, &LoadSaveState::closed, [this]() { m_screenWidget->layout()->removeWidget(m_stateWindow); m_stateWindow = nullptr;