1
0
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:
David Sansome 2010-04-08 22:08:18 +00:00
parent b6fd4dd3ac
commit 647ac1af8b

View File

@ -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 {