Qt: Fix window not regaining focus after exiting savestate window

This commit is contained in:
Jeffrey Pfau 2015-04-06 22:02:06 -07:00
parent 25e70e37c7
commit 3449c5cb3b
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ Bugfixes:
- 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:

View File

@ -542,7 +542,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);