summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-08-22 13:11:51 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-08-22 13:11:51 (GMT)
commit9bd0d4220e8b8e7a1714536d9e4d6c6e61727d85 (patch)
tree3d45cbd12b1ef310711fea4b93c85f36eab6b178 /Swift/QtUI/QtChatTabs.cpp
parentd786e1aeff062ef4f0a962d55ddce7d41c5f512e (diff)
downloadswift-9bd0d4220e8b8e7a1714536d9e4d6c6e61727d85.zip
swift-9bd0d4220e8b8e7a1714536d9e4d6c6e61727d85.tar.bz2
Don't incorrectly mark all messages read in most recently opened chat when a different chat is selected
Diffstat (limited to 'Swift/QtUI/QtChatTabs.cpp')
-rw-r--r--Swift/QtUI/QtChatTabs.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Swift/QtUI/QtChatTabs.cpp b/Swift/QtUI/QtChatTabs.cpp
index 48c882f..c14f9ad 100644
--- a/Swift/QtUI/QtChatTabs.cpp
+++ b/Swift/QtUI/QtChatTabs.cpp
@@ -52,6 +52,10 @@ void QtChatTabs::closeEvent(QCloseEvent* event) {
event->accept();
}
+QtTabbable* QtChatTabs::getCurrentTab() {
+ return qobject_cast<QtTabbable*>(tabs_->currentWidget());
+}
+
void QtChatTabs::addTab(QtTabbable* tab) {
QSizePolicy policy = sizePolicy();
/* Chat windows like to grow - don't let them */