Qt: Fix game display sometimes disappearing after closing load/save state screen

This commit is contained in:
Vicki Pfau 2020-11-17 19:25:46 -08:00
parent 510d1e60fc
commit 6cbc1f20f4
2 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@ Other fixes:
- Core: Fix thread unsafety issue when dispatching code to a thread
- Debugger: Close trace log when done tracing
- 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
- Wii: Fix crash on unloading irregularly sized GBA ROMs
0.8.4: (2020-10-29)

View File

@ -1058,6 +1058,7 @@ void Window::openStateWindow(LoadSave ls) {
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);
});