summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-06-25 18:36:42 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-06-25 18:36:42 (GMT)
commit5518a05a200d6531b5ee1d1409a1d451bc3b0749 (patch)
treed40e77f5ed163ff19ec7a9b2292ec74a8ad5b455 /Swift/QtUI/QtSwift.cpp
parent9695b3f8343a04e71fea697fc8c280cdafe85465 (diff)
downloadswift-5518a05a200d6531b5ee1d1409a1d451bc3b0749.zip
swift-5518a05a200d6531b5ee1d1409a1d451bc3b0749.tar.bz2
Command-line option to not use tabs.
Resolves: #476
Diffstat (limited to 'Swift/QtUI/QtSwift.cpp')
-rw-r--r--Swift/QtUI/QtSwift.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Swift/QtUI/QtSwift.cpp b/Swift/QtUI/QtSwift.cpp
index 2bf1fcf..3e8bc8b 100644
--- a/Swift/QtUI/QtSwift.cpp
+++ b/Swift/QtUI/QtSwift.cpp
@@ -45,6 +45,7 @@ po::options_description QtSwift::getOptionsDescription() {
result.add_options()
("help", "produce help message")
("netbook-mode", "use netbook mode display")
+ ("no-tabs", "don't manage chat windows in tabs")
("latency-debug", "use latency debugging")
;
return result;
@@ -62,7 +63,7 @@ QtSwift::QtSwift(po::variables_map options) : autoUpdater_(NULL) {
QCoreApplication::setOrganizationDomain(SWIFT_ORGANIZATION_DOMAIN);
QCoreApplication::setApplicationVersion(buildVersion);
- tabs_ = new QtChatTabs();
+ tabs_ = options.count("no-tabs") && !splitter_ > 0 ? NULL : new QtChatTabs();
settings_ = new QtSettingsProvider();
application_ = new PlatformApplication(SWIFT_APPLICATION_NAME);
systemTray_ = new QtSystemTray();