From 3fca180e9882e7d790092b897be37a6118bc6366 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 1dc459fdb..92c8bc848 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -1161,7 +1161,7 @@ void MainWindow::closeEvent(QCloseEvent *e) if (!m_forceExit) { hide(); - e->accept(); + e->ignore(); return; } #else