summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt2/MainWindow.cpp
diff options
context:
space:
mode:
authorspycrab <spycrab@users.noreply.github.com>2018-06-04 18:13:05 +0200
committerspycrab <spycrab@users.noreply.github.com>2018-06-04 18:13:05 +0200
commitb13cf2e16eb0d964789c9073faefdfda5fb7c1b6 (patch)
tree34cb75bced451c094f74068fe9ca67f7c91b9e2f /Source/Core/DolphinQt2/MainWindow.cpp
parent8e0ea92ec35a0473e79ef012b9f98b7a38d3ef33 (diff)
Qt: Fix emulation still not being paused when confirming exit
Diffstat (limited to 'Source/Core/DolphinQt2/MainWindow.cpp')
-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 e133403f3f..4bc18c16fd 100644
--- a/Source/Core/DolphinQt2/MainWindow.cpp
+++ b/Source/Core/DolphinQt2/MainWindow.cpp
@@ -637,7 +637,7 @@ bool MainWindow::RequestStop()
const Core::State state = Core::GetState();
// Only pause the game, if NetPlay is not running
- bool pause = !m_netplay_dialog->isVisible();
+ bool pause = Settings::Instance().GetNetPlayClient() == nullptr;
if (pause)
Core::SetState(Core::State::Paused);