all repos — mgba @ 3449c5cb3b084493732d545c9407848bb4dff2ea

mGBA Game Boy Advance Emulator

Qt: Fix window not regaining focus after exiting savestate window
Jeffrey Pfau jeffrey@endrift.com
Mon, 06 Apr 2015 22:02:06 -0700
commit

3449c5cb3b084493732d545c9407848bb4dff2ea

parent

25e70e37c7cecf234eb3fec7c50779460e68c1dd

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

jump to
M CHANGESCHANGES

@@ -13,6 +13,7 @@ - Qt: Fix "QOpenGLContext::swapBuffers() called with non-exposed window" warning

- ARM7: Fix SWI and IRQ timings - GBA Audio: Force audio FIFOs to 32-bit - GBA Memory: Ensure changing the timing of a DMA reschedules it + - Qt: Fix window not regaining focus after exiting savestate window 0.2.0: (2015-04-03) Features:
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -542,7 +542,7 @@ 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; - setFocus(); + QMetaObject::invokeMethod(this, "setFocus", Qt::QueuedConnection); }); if (!wasPaused) { m_controller->setPaused(true);