Always ignore closeEvent
This commit is contained in:
parent
6fc7baec39
commit
ad5e04bbcc
|
@ -1329,12 +1329,12 @@ void MainWindow::closeEvent(QCloseEvent *event) {
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
|
|
||||||
if (keep_running && event->spontaneous() && QSystemTrayIcon::isSystemTrayAvailable()) {
|
if (keep_running && event->spontaneous() && QSystemTrayIcon::isSystemTrayAvailable()) {
|
||||||
event->ignore();
|
|
||||||
SetHiddenInTray(true);
|
SetHiddenInTray(true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Exit();
|
Exit();
|
||||||
}
|
}
|
||||||
|
event->ignore();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue