summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorTechjar <tecknojar@gmail.com>2019-01-26 07:26:56 -0500
committerTechjar <tecknojar@gmail.com>2019-01-26 07:27:37 -0500
commit408029e8a310e142d798ee58af0a08abc06b5034 (patch)
treefb0612479411e582b0ff1d0dc471a935583ac367 /Source/Core
parent51a219c54d36d11dd5ca4cdb1b27ef877ed49a97 (diff)
Qt/MainWindow: Don't unpause after confirming shutdown
There's no good reason to do this, as it just causes running signals to be sent as the core is shutting down.
Diffstat (limited to 'Source/Core')
-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