diff options
| author | spycrab <spycrab@users.noreply.github.com> | 2021-04-25 02:18:28 +0200 |
|---|---|---|
| committer | Shawn Hoffman <godisgovernment@gmail.com> | 2022-05-02 22:39:33 -0700 |
| commit | 004e8a80b2cd577f0dd6b7b998d11181798c69da (patch) | |
| tree | 36db877c0f28a524ec36dc5a1aeaa97581903a3c /Source/Core/DolphinQt/MainWindow.cpp | |
| parent | f8c603a2dd6a79dbf6efb172bcde50508918a02a (diff) | |
Add support for building against Qt 6
Diffstat (limited to 'Source/Core/DolphinQt/MainWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/MainWindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp index 3be8f9d6a0..5099ffa0e2 100644 --- a/Source/Core/DolphinQt/MainWindow.cpp +++ b/Source/Core/DolphinQt/MainWindow.cpp @@ -825,7 +825,7 @@ void MainWindow::TogglePause() void MainWindow::OnStopComplete() { m_stop_requested = false; - HideRenderWidget(true, m_exit_requested); + HideRenderWidget(!m_exit_requested, m_exit_requested); #ifdef USE_DISCORD_PRESENCE if (!m_netplay_dialog->isVisible()) Discord::UpdateDiscordPresence(); @@ -834,7 +834,7 @@ void MainWindow::OnStopComplete() SetFullScreenResolution(false); if (m_exit_requested || Settings::Instance().IsBatchModeEnabled()) - QGuiApplication::instance()->quit(); + QGuiApplication::exit(0); // If the current emulation prevented the booting of another, do that now if (m_pending_boot != nullptr) |
