From fb1a5eab7e145167e18309d75f8f2312e9b107fb Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 23 Mar 2024 02:25:39 +1000 Subject: [PATCH] Qt: Don't invoke quit() from closeEvent() --- pcsx2-qt/MainWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcsx2-qt/MainWindow.cpp b/pcsx2-qt/MainWindow.cpp index ed7ae26f11..c9c695ce4e 100644 --- a/pcsx2-qt/MainWindow.cpp +++ b/pcsx2-qt/MainWindow.cpp @@ -1975,7 +1975,8 @@ void MainWindow::closeEvent(QCloseEvent* event) saveStateToConfig(); if (m_display_created) g_emu_thread->stopFullscreenUI(); - quit(); + destroySubWindows(); + QMainWindow::closeEvent(event); return; }