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
1 changed files with 1 additions and 1 deletions

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 {