all repos — mgba @ 2c74cb46ab7ee63bd4b4980385358a82fb5b11fd

mGBA Game Boy Advance Emulator

Ensure savestate window closes when a game is shut down
Jeffrey Pfau jeffrey@endrift.com
Sat, 18 Oct 2014 04:12:44 -0700
commit

2c74cb46ab7ee63bd4b4980385358a82fb5b11fd

parent

e2812b30b219bf9c77d2ea8e882f333fc8752ffd

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

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