Qt: Fix rewinding enabling the menu bar
Jeffrey Pfau jeffrey@endrift.com
Wed, 22 Jul 2015 21:34:49 -0700
1 files changed,
4 insertions(+),
0 deletions(-)
M
src/platform/qt/GameController.cpp
→
src/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) {