summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-10-12 08:04:20 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-10-12 08:04:20 (GMT)
commit47f27c607a7fb04495d402c6059664250d452a81 (patch)
tree060836937ffc494f3be207f653485f5556a8e358 /Swift
parentc061f286915bdffa93d4dc722764eae1636291cc (diff)
downloadswift-47f27c607a7fb04495d402c6059664250d452a81.zip
swift-47f27c607a7fb04495d402c6059664250d452a81.tar.bz2
Fix for chat tabs always getting focus on incoming messages
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/QtChatTabs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/QtUI/QtChatTabs.cpp b/Swift/QtUI/QtChatTabs.cpp
index e36b65b..00d07c8 100644
--- a/Swift/QtUI/QtChatTabs.cpp
+++ b/Swift/QtUI/QtChatTabs.cpp
@@ -46,7 +46,6 @@ void QtChatTabs::handleWidgetShown() {
return;
}
if (tabs_->indexOf(widget) >= 0) {
- widget->setFocus();
return;
}
addTab(widget);
@@ -61,6 +60,7 @@ void QtChatTabs::handleWantsToActivate() {
setWindowState(windowState() & ~Qt::WindowMinimized);
setWindowState(windowState() | Qt::WindowActive);
tabs_->setCurrentWidget(widget);
+ widget->setFocus();
activateWindow();
}