summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-09-15 21:39:15 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-09-15 21:39:15 (GMT)
commit30f65cc069715e570cc376e0181126e43047cebc (patch)
tree250cfac8723db5c7bbe2b78ecd88a4001f912567
parent416e20360efab8b12bfaa223c287b6d49dc2a3b8 (diff)
downloadswift-contrib-30f65cc069715e570cc376e0181126e43047cebc.zip
swift-contrib-30f65cc069715e570cc376e0181126e43047cebc.tar.bz2
Hide the tabset when there are no more open tabs.
-rw-r--r--Swift/QtUI/QtChatTabs.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Swift/QtUI/QtChatTabs.cpp b/Swift/QtUI/QtChatTabs.cpp
index e73ddab..8e6bea2 100644
--- a/Swift/QtUI/QtChatTabs.cpp
+++ b/Swift/QtUI/QtChatTabs.cpp
@@ -71,6 +71,9 @@ void QtChatTabs::handleTabClosing() {
return;
}
tabs_->removeTab(index);
+ if (tabs_->count() == 0) {
+ hide();
+ }
}
void QtChatTabs::handleTabCloseRequested(int index) {