summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
Diffstat (limited to 'Swift')
-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) {