summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-10-04 18:46:33 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-10-04 18:46:33 (GMT)
commit8f00ac5023dd91c707b648c8f9af6e03ff89c9de (patch)
tree0f1dadba6a978a4cba637b720b802210ba4f4064 /Swift/QtUI/QtChatTabs.cpp
parentf2009dabdf83fb6a5151a3b5b1277edbe79f0ad2 (diff)
downloadswift-contrib-8f00ac5023dd91c707b648c8f9af6e03ff89c9de.zip
swift-contrib-8f00ac5023dd91c707b648c8f9af6e03ff89c9de.tar.bz2
Give chat input focus when a tab is selected
Diffstat (limited to 'Swift/QtUI/QtChatTabs.cpp')
-rw-r--r--Swift/QtUI/QtChatTabs.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Swift/QtUI/QtChatTabs.cpp b/Swift/QtUI/QtChatTabs.cpp
index 3d66e0a..e36b65b 100644
--- a/Swift/QtUI/QtChatTabs.cpp
+++ b/Swift/QtUI/QtChatTabs.cpp
@@ -46,6 +46,7 @@ void QtChatTabs::handleWidgetShown() {
return;
}
if (tabs_->indexOf(widget) >= 0) {
+ widget->setFocus();
return;
}
addTab(widget);