Make qBittorrent quit on MacOS with main window closed
Some checks failed
CI - File health / Check (push) Has been cancelled
CI - macOS / Build (push) Has been cancelled
CI - Python / Check (push) Has been cancelled
CI - Ubuntu / Build (push) Has been cancelled
CI - WebUI / Check (push) Has been cancelled
CI - Windows / Build (push) Has been cancelled

Fixes the reported bug that you couldn't quit qBittorrent when the main window was closed on MacOS.

Closes #22849.
PR #22931.
This commit is contained in:
Ryu481 2025-06-29 19:56:39 +02:00 committed by GitHub
parent ef4957a9f4
commit 5028f68d48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1163,7 +1163,7 @@ void MainWindow::closeEvent(QCloseEvent *e)
if (!m_forceExit)
{
hide();
e->accept();
e->ignore();
return;
}
#else