summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-06-15 21:51:45 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-06-15 21:51:45 (GMT)
commit73fa400641352d2f397b2e4a8589bf6ce80c7beb (patch)
treeba707c8bfc35272e16733ac6385317ea56f1d1a9 /Swift
parentaf53136d04a72b05efd8c51cfa5573f97e93c6cf (diff)
downloadswift-73fa400641352d2f397b2e4a8589bf6ce80c7beb.zip
swift-73fa400641352d2f397b2e4a8589bf6ce80c7beb.tar.bz2
Slightly cleaner close behaviour for tabs - still broken.
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/QtChatTabs.cpp3
-rw-r--r--Swift/QtUI/QtChatWindow.cpp1
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();
}