summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2015-01-14 20:59:13 (GMT)
committerSwift Review <review@swift.im>2015-02-11 14:38:53 (GMT)
commit7690cc3519c160c9532b5c0f0b7640b87a344720 (patch)
tree9796a07373007365b228371577246b777a91c7bc /Swift
parentc9e2bf1a3447732a36cfd728eced82b9ebe42382 (diff)
downloadswift-7690cc3519c160c9532b5c0f0b7640b87a344720.zip
swift-7690cc3519c160c9532b5c0f0b7640b87a344720.tar.bz2
Fix --no-tabs mode broken
Trellis changes introduced a bug for the --no-tabs mode. Test-Information: Tested on Mac OS X 10.9.5. Change-Id: Ic918a38cda00a64f8eca496ede0190fbef6b6602
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/QtUIFactory.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Swift/QtUI/QtUIFactory.cpp b/Swift/QtUI/QtUIFactory.cpp
index df68ed6..2fac36a 100644
--- a/Swift/QtUI/QtUIFactory.cpp
+++ b/Swift/QtUI/QtUIFactory.cpp
@@ -82,7 +82,9 @@ FileTransferListWidget* QtUIFactory::createFileTransferListWidget() {
MainWindow* QtUIFactory::createMainWindow(UIEventStream* eventStream) {
lastMainWindow = new QtMainWindow(settings, eventStream, loginWindow->getMenus(), statusCache, emoticonsExist_, enableAdHocCommandOnJID_);
- tabs->setViewMenu(lastMainWindow->getMenus()[0]);
+ if (tabs) {
+ tabs->setViewMenu(lastMainWindow->getMenus()[0]);
+ }
return lastMainWindow;
}