From a7588f25bb48334364296bcd7d3a4b66a699eb1c Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Tue, 22 Jul 2014 02:22:03 -0700 Subject: [PATCH] Sync pause setting with the menu properly --- src/platform/qt/Window.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platform/qt/Window.cpp b/src/platform/qt/Window.cpp index 023af980f..791a2a01b 100644 --- a/src/platform/qt/Window.cpp +++ b/src/platform/qt/Window.cpp @@ -172,6 +172,8 @@ void Window::setupMenu(QMenuBar* menubar) { pause->setCheckable(true); pause->setShortcut(tr("Ctrl+P")); connect(pause, SIGNAL(triggered(bool)), m_controller, SLOT(setPaused(bool))); + connect(m_controller, &GameController::gamePaused, [pause]() { pause->setChecked(true); }); + connect(m_controller, &GameController::gameUnpaused, [pause]() { pause->setChecked(false); }); m_gameActions.append(pause); emulationMenu->addAction(pause);