Fix quilt by system on macOS.

This commit is contained in:
John Preston 2022-01-31 20:51:50 +03:00
parent 315c85fb8d
commit 9d6eeace54

View file

@ -796,7 +796,7 @@ void MainWindow::toggleDisplayNotifyFromTray() {
} }
void MainWindow::closeEvent(QCloseEvent *e) { void MainWindow::closeEvent(QCloseEvent *e) {
if (Core::Sandbox::Instance().isSavingSession()) { if (Core::Sandbox::Instance().isSavingSession() || Core::Quitting()) {
e->accept(); e->accept();
Core::Quit(); Core::Quit();
} else { } else {