summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-08-28 17:06:23 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-08-28 17:06:23 (GMT)
commita7d991706247db6b279a0c049d0b094632c7ec7d (patch)
tree51572745b8102be1078a61c167e1bbd7fe4c404a
parent18c39e032395ee49796d330905caea4e28ef5608 (diff)
downloadswift-a7d991706247db6b279a0c049d0b094632c7ec7d.zip
swift-a7d991706247db6b279a0c049d0b094632c7ec7d.tar.bz2
Put the selected tab title as the tabwidget title. #184
-rw-r--r--Swift/QtUI/QtChatTabs.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Swift/QtUI/QtChatTabs.cpp b/Swift/QtUI/QtChatTabs.cpp
index e1f4e86..a896dc9 100644
--- a/Swift/QtUI/QtChatTabs.cpp
+++ b/Swift/QtUI/QtChatTabs.cpp
@@ -77,6 +77,9 @@ void QtChatTabs::handleTabTitleUpdated() {
return;
}
tabs_->setTabText(index, widget->windowTitle());
+ if (widget == tabs_->currentWidget()) {
+ setWindowTitle(widget->windowTitle());
+ }
}
}