diff options
| author | Remko Tronçon <git@el-tramo.be> | 2009-11-28 17:59:58 (GMT) |
|---|---|---|
| committer | Remko Tronçon <git@el-tramo.be> | 2009-11-28 17:59:58 (GMT) |
| commit | 0eea2c98c8a26665a1a8c795dba62f8d1cf180a3 (patch) | |
| tree | e02c5e8b92c87bd13431e6ec995e9cd485fef71c | |
| parent | 84b88630a5acdc2f8ad46161d5eaaf1511cbc8d3 (diff) | |
| download | swift-0eea2c98c8a26665a1a8c795dba62f8d1cf180a3.zip swift-0eea2c98c8a26665a1a8c795dba62f8d1cf180a3.tar.bz2 | |
Quit when the last window is closed.
| -rw-r--r-- | Swift/QtUI/QtLoginWindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/QtUI/QtLoginWindow.cpp b/Swift/QtUI/QtLoginWindow.cpp index a222e8e..606db80 100644 --- a/Swift/QtUI/QtLoginWindow.cpp +++ b/Swift/QtUI/QtLoginWindow.cpp @@ -97,13 +97,13 @@ QtLoginWindow::QtLoginWindow(UIEventStream* uiEventStream) : QMainWindow() { stack_->addWidget(wrapperWidget); #ifdef SWIFTEN_PLATFORM_MACOSX menuBar_ = new QMenuBar(NULL); #else menuBar_ = menuBar(); #endif - QApplication::setQuitOnLastWindowClosed(false); + QApplication::setQuitOnLastWindowClosed(true); swiftMenu_ = new QMenu(tr("Swift"), this); QAction* aboutAction = new QAction("About Swift", this); connect(aboutAction, SIGNAL(activated()), SLOT(handleAbout())); swiftMenu_->addAction(aboutAction); |
Swift