diff options
author | Kevin Smith <git@kismith.co.uk> | 2009-12-24 10:26:52 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2009-12-24 10:26:52 (GMT) |
commit | 39209e6b419af417d3db011d7fd29433e88c8b3a (patch) | |
tree | f23a82b9df8ada162932b6e346c97f8db05a233f | |
parent | 290134a460538f61143ba50e0232a5d5be560ca3 (diff) | |
download | swift-contrib-39209e6b419af417d3db011d7fd29433e88c8b3a.zip swift-contrib-39209e6b419af417d3db011d7fd29433e88c8b3a.tar.bz2 |
Close chat tabset on signout.
Resolves: #227
-rw-r--r-- | Swift/QtUI/QtTabbable.cpp | 4 | ||||
-rw-r--r-- | Swift/QtUI/QtTabbable.h | 1 |
2 files changed, 5 insertions, 0 deletions
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: |