diff options
author | Kevin Smith <git@kismith.co.uk> | 2009-06-15 21:51:45 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2009-06-15 21:51:45 (GMT) |
commit | 73fa400641352d2f397b2e4a8589bf6ce80c7beb (patch) | |
tree | ba707c8bfc35272e16733ac6385317ea56f1d1a9 | |
parent | af53136d04a72b05efd8c51cfa5573f97e93c6cf (diff) | |
download | swift-73fa400641352d2f397b2e4a8589bf6ce80c7beb.zip swift-73fa400641352d2f397b2e4a8589bf6ce80c7beb.tar.bz2 |
Slightly cleaner close behaviour for tabs - still broken.
-rw-r--r-- | Swift/QtUI/QtChatTabs.cpp | 3 | ||||
-rw-r--r-- | Swift/QtUI/QtChatWindow.cpp | 1 |
2 files changed, 2 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() { diff --git a/Swift/QtUI/QtChatWindow.cpp b/Swift/QtUI/QtChatWindow.cpp index 880678a..9f1f445 100644 --- a/Swift/QtUI/QtChatWindow.cpp +++ b/Swift/QtUI/QtChatWindow.cpp @@ -95,6 +95,7 @@ SecurityLabel QtChatWindow::getSelectedSecurityLabel() { void QtChatWindow::closeEvent(QCloseEvent* event) { onClosed(); + emit windowClosing(); event->accept(); } |