summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2011-03-03 14:24:45 (GMT)
committerKevin Smith <git@kismith.co.uk>2011-03-03 14:24:45 (GMT)
commita8cd6a5cbf74d0db4df0b7daa8e4b1b0e0bc00d0 (patch)
tree70dd2259e9399acfe484f6fa6adb47ca60d58f14 /Swift/QtUI
parent7ebb858551e626555bf52ec9f97f9f6de06f0081 (diff)
downloadswift-contrib-a8cd6a5cbf74d0db4df0b7daa8e4b1b0e0bc00d0.zip
swift-contrib-a8cd6a5cbf74d0db4df0b7daa8e4b1b0e0bc00d0.tar.bz2
Update chat window title when changing tabs.
Resolves: #773
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/QtChatTabs.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Swift/QtUI/QtChatTabs.cpp b/Swift/QtUI/QtChatTabs.cpp
index 60beb50..19bf9ba 100644
--- a/Swift/QtUI/QtChatTabs.cpp
+++ b/Swift/QtUI/QtChatTabs.cpp
@@ -80,6 +80,7 @@ void QtChatTabs::handleWidgetShown() {
}
checkForFirstShow();
if (tabs_->indexOf(widget) >= 0) {
+ handleTabTitleUpdated(widget);
return;
}
addTab(widget);
@@ -95,6 +96,7 @@ void QtChatTabs::handleWantsToActivate() {
show();
widget->show();
tabs_->setCurrentWidget(widget);
+ handleTabTitleUpdated(widget);
widget->setFocus();
raise();
activateWindow();