summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/MainWindow.cpp
diff options
context:
space:
mode:
authorConnor McLaughlin <stenzek@gmail.com>2019-01-26 23:48:52 +1000
committerGitHub <noreply@github.com>2019-01-26 23:48:52 +1000
commitff5e29657655b0a423b94575f5766e6a56fc3407 (patch)
tree013d9930bfcd68d85adebe8380db9f29e008cace /Source/Core/DolphinQt/MainWindow.cpp
parentcf6eb3d38d04a027ce925e2ae2a69bb5338c9c06 (diff)
parent408029e8a310e142d798ee58af0a08abc06b5034 (diff)
Merge pull request #7741 from Techjar/no-resume-on-stop
Qt/MainWindow: Don't unpause after confirming shutdown
Diffstat (limited to 'Source/Core/DolphinQt/MainWindow.cpp')
-rw-r--r--Source/Core/DolphinQt/MainWindow.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp
index 9caf98d966..8389940c06 100644
--- a/Source/Core/DolphinQt/MainWindow.cpp
+++ b/Source/Core/DolphinQt/MainWindow.cpp
@@ -766,11 +766,13 @@ bool MainWindow::RequestStop()
"before it completes. Force stop?") :
tr("Do you want to stop the current emulation?"));
- if (pause)
- Core::SetState(state);
-
if (confirm != QMessageBox::Yes)
+ {
+ if (pause)
+ Core::SetState(state);
+
return false;
+ }
}
// TODO: Add Movie shutdown