summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-08-28 19:29:06 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-08-28 19:29:06 (GMT)
commit17444b1ad6e3a14b3fb3c194ba60042ad29c2c03 (patch)
treed30afa8681a4fb4c3be6862ebf171f1f67138461 /Swift
parenta039c692131ff70fe2e65429cc37de21aa530fc2 (diff)
downloadswift-17444b1ad6e3a14b3fb3c194ba60042ad29c2c03.zip
swift-17444b1ad6e3a14b3fb3c194ba60042ad29c2c03.tar.bz2
Don't quit when the roster is hidden and there's no open chat window.
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/QtLoginWindow.cpp1
1 files changed, 1 insertions, 0 deletions
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);