From 5b7e39e45f03f0d30857d91158a293ff742506e6 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Mon, 14 Sep 2015 19:51:59 -0700 Subject: [PATCH] Qt: Prevent savestate window from opening while in multiplayer --- CHANGES | 1 + src/platform/qt/Window.cpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGES b/CHANGES index 255232226..fe93e9f5f 100644 --- a/CHANGES +++ b/CHANGES @@ -23,6 +23,7 @@ Misc: - ARM7: Force disable LTO on two files to work around a GCC bug - Libretro: Use anonymous memory mappers for large blocks of memory - Qt: Add 'Apply' button to settings window + - Qt: Prevent savestate window from opening while in multiplayer 0.3.0: (2015-08-16) Features: diff --git a/src/platform/qt/Window.cpp b/src/platform/qt/Window.cpp index 0893b43bd..882ed87e3 100644 --- a/src/platform/qt/Window.cpp +++ b/src/platform/qt/Window.cpp @@ -693,6 +693,10 @@ void Window::openStateWindow(LoadSave ls) { if (m_stateWindow) { return; } + MultiplayerController* multiplayer = m_controller->multiplayerController(); + if (multiplayer && multiplayer->attached() > 1) { + return; + } bool wasPaused = m_controller->isPaused(); m_stateWindow = new LoadSaveState(m_controller); connect(this, SIGNAL(shutdown()), m_stateWindow, SLOT(close()));