summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-08-28 22:25:22 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-08-28 22:25:22 (GMT)
commit0de707a4fddfbf2b9ee85d277596d33faa327ff2 (patch)
tree2cdc642e0ddc5dd00b6fc415568a1e3ca72ef595
parentbb80efbacd3e02728c3a9cbbf3c73ac4beeb997e (diff)
downloadswift-0de707a4fddfbf2b9ee85d277596d33faa327ff2.zip
swift-0de707a4fddfbf2b9ee85d277596d33faa327ff2.tar.bz2
Show menus on non-macs
-rw-r--r--Swift/QtUI/QtLoginWindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Swift/QtUI/QtLoginWindow.cpp b/Swift/QtUI/QtLoginWindow.cpp
index 367dc2c..210d927 100644
--- a/Swift/QtUI/QtLoginWindow.cpp
+++ b/Swift/QtUI/QtLoginWindow.cpp
@@ -83,7 +83,11 @@ QtLoginWindow::QtLoginWindow(const String& defaultJID, const String& defaultPass
layout->addWidget(remember_);
connect(loginButton_, SIGNAL(clicked()), SLOT(loginClicked()));
stack_->addWidget(wrapperWidget);
+#ifdef SWIFTEN_PLATFORM_MACOSX
menuBar_ = new QMenuBar(NULL);
+#else
+ menuBar_ = menuBar();
+#endif
QApplication::setQuitOnLastWindowClosed(false);
swiftMenu_ = new QMenu(tr("Swift"), this);