mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix window not regaining focus after exiting savestate window
This commit is contained in:
parent
3c5db2b7a1
commit
1dcd40a5e9
1
CHANGES
1
CHANGES
|
@ -7,6 +7,7 @@ Bugfixes:
|
|||
- GBA Audio: FIFOs should not poll DMAs that are not scheduled for audio
|
||||
- Qt: Fix "QOpenGLContext::swapBuffers() called with non-exposed window" warning
|
||||
- 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:
|
||||
|
|
|
@ -541,7 +541,7 @@ void Window::openStateWindow(LoadSave ls) {
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue