Qt: Fix being unable to pause manually when using auto-pausing

This commit is contained in:
Jeffrey Pfau 2016-08-29 18:22:47 -07:00
parent e82c050a7d
commit 246efef6b9
2 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,7 @@ Bugfixes:
- VFS: Fix reading multiple files from a 7z archive
- GBA: Fix filehandle leak with savegames
- GBA: Timer 0 cannot be count up
- Qt: Fix being unable to pause manually when using auto-pausing
Misc:
- 3DS: Use blip_add_delta_fast for a small speed improvement
- OpenGL: Log shader compilation failure

View File

@ -1530,6 +1530,7 @@ void Window::focusCheck() {
}
if (QGuiApplication::focusWindow() && m_autoresume) {
m_controller->setPaused(false);
m_autoresume = false;
} else if (!QGuiApplication::focusWindow() && !m_controller->isPaused()) {
m_autoresume = true;
m_controller->setPaused(true);