From 39209e6b419af417d3db011d7fd29433e88c8b3a Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Thu, 24 Dec 2009 10:26:52 +0000
Subject: Close chat tabset on signout.

Resolves: #227

diff --git a/Swift/QtUI/QtTabbable.cpp b/Swift/QtUI/QtTabbable.cpp
index 8473529..dafdd3f 100644
--- a/Swift/QtUI/QtTabbable.cpp
+++ b/Swift/QtUI/QtTabbable.cpp
@@ -4,6 +4,10 @@
 
 namespace Swift {
 
+QtTabbable::~QtTabbable() {
+	emit windowClosing();
+}
+
 bool QtTabbable::isWidgetSelected() {
 	/*isActiveWindow() shouldn't be necessary, but I don't trust it as far as I can throw it*/
 	return isActiveWindow() && isAncestorOf(QApplication::focusWidget());
diff --git a/Swift/QtUI/QtTabbable.h b/Swift/QtUI/QtTabbable.h
index c28e301..be528ce 100644
--- a/Swift/QtUI/QtTabbable.h
+++ b/Swift/QtUI/QtTabbable.h
@@ -7,6 +7,7 @@ namespace Swift {
 	class QtTabbable : public QWidget {
 		Q_OBJECT
 		public:
+			~QtTabbable();
 			bool isWidgetSelected();
 			virtual bool isWidgetAlerting() {return false;};
 		protected:
-- 
cgit v0.10.2-6-g49f6