all repos — mgba @ a37060d053d54399c75c813ad686fb2ffa071b6a

mGBA Game Boy Advance Emulator

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
commit

a37060d053d54399c75c813ad686fb2ffa071b6a

parent

1c2ec714e1167532516326804bdfa9d741318baf

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

jump to
M CHANGESCHANGES

@@ -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.cppsrc/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); });