Always ignore closeEvent
This commit is contained in:
parent
6fc7baec39
commit
ad5e04bbcc
|
@ -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();
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue