summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/MainWindow.cpp
diff options
context:
space:
mode:
authorSilent <zdanio95@gmail.com>2019-08-11 20:58:04 +0200
committerSilent <zdanio95@gmail.com>2019-08-11 20:58:04 +0200
commitb6df0bff939670ee209abb8817d1aa3bd7ded709 (patch)
tree459f06fe41f0d55210310bf8120caeecae778d03 /Source/Core/DolphinQt/MainWindow.cpp
parent80e8037e0b5e1894140cf4d7f8a1881df0428fe9 (diff)
Make --batch run Dolphin in headless mode, provided --exec is also passed
Diffstat (limited to 'Source/Core/DolphinQt/MainWindow.cpp')
-rw-r--r--Source/Core/DolphinQt/MainWindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp
index e8caad4791..745ecf0fd5 100644
--- a/Source/Core/DolphinQt/MainWindow.cpp
+++ b/Source/Core/DolphinQt/MainWindow.cpp
@@ -1714,7 +1714,8 @@ void MainWindow::OnUpdateProgressDialog(QString title, int progress, int total)
void MainWindow::Show()
{
- QWidget::show();
+ if (!Settings::Instance().IsBatchModeEnabled())
+ QWidget::show();
// If the booting of a game was requested on start up, do that now
if (m_pending_boot != nullptr)