Qt: Fix game display sometimes disappearing after closing load/save state screen
Vicki Pfau vi@endrift.com
Tue, 17 Nov 2020 19:25:46 -0800
2 files changed,
2 insertions(+),
0 deletions(-)
M
CHANGES
→
CHANGES
@@ -59,6 +59,7 @@ - Qt: Fix static compilation in MinGW (fixes mgba.io/i/1769)
- Qt: Fix a race condition in the frame inspector - Qt: Load/save bytes from memory viewer in the order visible (fixes mgba.io/i/1900) - Qt: Fix running proxied video if it gets pushed to the main thread + - Qt: Fix game display sometimes disappearing after closing load/save state screen - SM83: Simplify register pair access on big endian - SM83: Disassemble STOP as one byte Misc:
M
src/platform/qt/Window.cpp
→
src/platform/qt/Window.cpp
@@ -1071,6 +1071,7 @@ m_stateWindow = new LoadSaveState(m_controller);
connect(this, &Window::shutdown, m_stateWindow, &QWidget::close); connect(m_stateWindow, &LoadSaveState::closed, [this]() { detachWidget(m_stateWindow); + static_cast<QStackedLayout*>(m_screenWidget->layout())->setCurrentWidget(m_display.get()); m_stateWindow = nullptr; QMetaObject::invokeMethod(this, "setFocus", Qt::QueuedConnection); });