From 17444b1ad6e3a14b3fb3c194ba60042ad29c2c03 Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Fri, 28 Aug 2009 20:29:06 +0100
Subject: Don't quit when the roster is hidden and there's no open chat window.


diff --git a/Swift/QtUI/QtLoginWindow.cpp b/Swift/QtUI/QtLoginWindow.cpp
index dbe6bb2..8c29847 100644
--- a/Swift/QtUI/QtLoginWindow.cpp
+++ b/Swift/QtUI/QtLoginWindow.cpp
@@ -81,6 +81,7 @@ QtLoginWindow::QtLoginWindow(const String& defaultJID, const String& defaultPass
 	connect(loginButton_, SIGNAL(clicked()), SLOT(loginClicked()));
 	stack_->addWidget(wrapperWidget);
 	menuBar_ = new QMenuBar(NULL);
+	QApplication::setQuitOnLastWindowClosed(false);
 	
 	swiftMenu_ = new QMenu(tr("Swift"), this);
 	QAction* quitAction = new QAction("Quit", this);
-- 
cgit v0.10.2-6-g49f6