From 952ac961af5ad09fa4105de5c938c147b260b3a0 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Sun, 16 Nov 2008 02:09:51 +0100 Subject: [PATCH] Don't quit when the last window is closed (could still be running in systray...) This fixes BRs #189 and #321. --- src/qtui/mainwin.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qtui/mainwin.cpp b/src/qtui/mainwin.cpp index 8287dddb..e45576e1 100644 --- a/src/qtui/mainwin.cpp +++ b/src/qtui/mainwin.cpp @@ -83,6 +83,8 @@ MainWin::MainWin(QWidget *parent) QApplication::setStyle(style); } + QApplication::setQuitOnLastWindowClosed(false); + setWindowTitle("Quassel IRC"); setWindowIconText("Quassel IRC"); updateIcon(); @@ -598,6 +600,7 @@ void MainWin::closeEvent(QCloseEvent *event) { event->ignore(); } else { event->accept(); + QApplication::quit(); } } -- 2.20.1