summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorspycrab <spycrab@users.noreply.github.com>2018-05-25 03:53:05 +0200
committerspycrab <spycrab@users.noreply.github.com>2018-05-25 03:53:05 +0200
commit7931d2d00de1d93fe03372cf4fc81bc4f4c8b3a6 (patch)
tree0994bfec74e4f43eaabfdee6ef100f1f6ca3b0ff /Source
parenta68b8202e11b65cf7aee4345c859b6036144a213 (diff)
Qt: Fix game not getting paused when exit prompt is open
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinQt2/MainWindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt2/MainWindow.cpp b/Source/Core/DolphinQt2/MainWindow.cpp
index 66129e1fb6..89d0b7775c 100644
--- a/Source/Core/DolphinQt2/MainWindow.cpp
+++ b/Source/Core/DolphinQt2/MainWindow.cpp
@@ -601,7 +601,7 @@ bool MainWindow::RequestStop()
const Core::State state = Core::GetState();
// Only pause the game, if NetPlay is not running
- bool pause = Settings::Instance().GetNetPlayClient() != nullptr;
+ bool pause = !m_netplay_dialog->isVisible();
if (pause)
Core::SetState(Core::State::Paused);