all repos — mgba @ e9c82df5187212025d930d862beb523f373c74ed

mGBA Game Boy Advance Emulator

Qt: Fix rewinding enabling the menu bar
Jeffrey Pfau jeffrey@endrift.com
Wed, 22 Jul 2015 21:34:49 -0700
commit

e9c82df5187212025d930d862beb523f373c74ed

parent

da226abba68654b05480d3e56a4d62d3fc95f00a

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M src/platform/qt/GameController.cppsrc/platform/qt/GameController.cpp

@@ -519,7 +519,9 @@ if (!m_gameOpen || m_rewindTimer.isActive()) {

return; } m_wasPaused = isPaused(); + bool signalsBlocked = blockSignals(true); setPaused(true); + blockSignals(signalsBlocked); m_rewindTimer.start(); }

@@ -528,7 +530,9 @@ if (!m_rewindTimer.isActive()) {

return; } m_rewindTimer.stop(); + bool signalsBlocked = blockSignals(true); setPaused(m_wasPaused); + blockSignals(signalsBlocked); } void GameController::keyPressed(int key) {