summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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();
}