Always ignore closeEvent

This commit is contained in:
Jonas Kvinge 2019-09-05 19:07:58 +02:00
parent 6fc7baec39
commit ad5e04bbcc
1 changed files with 1 additions and 1 deletions

View File

@ -1329,12 +1329,12 @@ void MainWindow::closeEvent(QCloseEvent *event) {
settings.endGroup();
if (keep_running && event->spontaneous() && QSystemTrayIcon::isSystemTrayAvailable()) {
event->ignore();
SetHiddenInTray(true);
}
else {
Exit();
}
event->ignore();
}