diff options
Diffstat (limited to 'Swift/QtUI/QtChatTabs.cpp')
-rw-r--r-- | Swift/QtUI/QtChatTabs.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Swift/QtUI/QtChatTabs.cpp b/Swift/QtUI/QtChatTabs.cpp index 78cdf2d..c7cd7ba 100644 --- a/Swift/QtUI/QtChatTabs.cpp +++ b/Swift/QtUI/QtChatTabs.cpp @@ -41,8 +41,7 @@ void QtChatTabs::handleTabClosing() { void QtChatTabs::handleTabCloseRequested(int index) { QWidget* widget = tabs_->widget(index); - tabs_->removeTab(index); - widget->hide(); + widget->close(); } void QtChatTabs::handleTabTitleUpdated() { |