From b4ab6e93e054fb38b71d1f23b7fcb35fdebe51a4 Mon Sep 17 00:00:00 2001 From: Ryu481 <142620516+Ryu481@users.noreply.github.com> Date: Fri, 27 Jun 2025 05:19:11 +0200 Subject: [PATCH] Make qBittorrent quit on MacOS with main window closed Closes 22849 Fixes the reported bug that you couldn't quit qBittorrent when the main window was closed on MacOS Closes 22849 --- src/gui/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index d4d6b668f..e30da68d1 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -1163,7 +1163,7 @@ void MainWindow::closeEvent(QCloseEvent *e) if (!m_forceExit) { hide(); - e->accept(); + e->ignore(); return; } #else