mirror of https://github.com/mgba-emu/mgba.git
Close the savestate window, not just hiding it, when we shut things down
This commit is contained in:
parent
e2901db7c1
commit
9efd8f2452
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue