From 5028f68d484b8201428d8cbea49c0b7fff06fda4 Mon Sep 17 00:00:00 2001 From: Ryu481 <142620516+Ryu481@users.noreply.github.com> Date: Sun, 29 Jun 2025 19:56:39 +0200 Subject: [PATCH] Make qBittorrent quit on MacOS with main window closed Fixes the reported bug that you couldn't quit qBittorrent when the main window was closed on MacOS. Closes #22849. PR #22931. --- 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