diff options
author | Kevin Smith <git@kismith.co.uk> | 2009-09-15 21:39:15 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2009-09-15 21:39:15 (GMT) |
commit | 30f65cc069715e570cc376e0181126e43047cebc (patch) | |
tree | 250cfac8723db5c7bbe2b78ecd88a4001f912567 | |
parent | 416e20360efab8b12bfaa223c287b6d49dc2a3b8 (diff) | |
download | swift-contrib-30f65cc069715e570cc376e0181126e43047cebc.zip swift-contrib-30f65cc069715e570cc376e0181126e43047cebc.tar.bz2 |
Hide the tabset when there are no more open tabs.
-rw-r--r-- | Swift/QtUI/QtChatTabs.cpp | 3 |
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) { |