summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt2/MainWindow.cpp
diff options
context:
space:
mode:
authorspycrab <spycrab@users.noreply.github.com>2018-04-29 19:13:40 +0200
committerspycrab <spycrab@users.noreply.github.com>2018-04-29 19:13:40 +0200
commit2a837a82d45b68e07a97f782b546f1ca4e052ced (patch)
tree0d3585825299292452c062236f0ccbb8a6399ac6 /Source/Core/DolphinQt2/MainWindow.cpp
parent1c9b64ff02ef1f2f6c46631aab5eb30ecdad63b6 (diff)
Qt: Implement Batch flag (-b)
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 78f76bedd7..de05df1602 100644
--- a/Source/Core/DolphinQt2/MainWindow.cpp
+++ b/Source/Core/DolphinQt2/MainWindow.cpp
@@ -526,7 +526,7 @@ void MainWindow::OnStopComplete()
m_stop_requested = false;
HideRenderWidget();
- if (m_exit_requested)
+ if (m_exit_requested || Settings::Instance().IsBatchModeEnabled())
QGuiApplication::instance()->quit();
// If the current emulation prevented the booting of another, do that now