summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/MainWindow.cpp
diff options
context:
space:
mode:
authorConnor McLaughlin <stenzek@gmail.com>2019-08-20 12:22:50 +1000
committerGitHub <noreply@github.com>2019-08-20 12:22:50 +1000
commit82fe8f61b6de80549a6afc9542120efffbedc0d1 (patch)
treee3709e68273d98c92b177f8cc7e084c711dba5e6 /Source/Core/DolphinQt/MainWindow.cpp
parent6efab4e3c6322839a9156d953b321b5da621de91 (diff)
parentb6df0bff939670ee209abb8817d1aa3bd7ded709 (diff)
Merge pull request #8308 from CookiePLMonster/cmdline-headless
Make --batch run Dolphin headless
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)