mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-31 11:35:24 +01:00
Don't block the window manager's logout sequence. Fixes issue #143
This commit is contained in:
parent
b6fd4dd3ac
commit
647ac1af8b
@ -558,7 +558,7 @@ void MainWindow::StopAfterCurrent() {
|
||||
* Exit if the tray icon is not visible, otherwise ignore and set hidden in tray.
|
||||
*/
|
||||
void MainWindow::closeEvent(QCloseEvent* event) {
|
||||
if (tray_icon_->isVisible()) {
|
||||
if (tray_icon_->isVisible() && event->spontaneous()) {
|
||||
event->ignore();
|
||||
SetHiddenInTray(true);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user