Commit 5f006d89 authored by Carlos Alves's avatar Carlos Alves
Browse files

Fix dbus setCurrentSession focus

It was only giving focus to terminal but not the tab.

BUG: 422262
FIXED-IN: 20.12
parent baaa5303
...@@ -1070,6 +1070,11 @@ void ViewManager::setCurrentSession(int sessionId) ...@@ -1070,6 +1070,11 @@ void ViewManager::setCurrentSession(int sessionId)
auto *display = session->views().at(0); auto *display = session->views().at(0);
if (display != nullptr) { if (display != nullptr) {
display->setFocus(Qt::OtherFocusReason); display->setFocus(Qt::OtherFocusReason);
auto *splitter = qobject_cast<ViewSplitter *>(display->parent());
if (splitter != nullptr) {
_viewContainer->setCurrentWidget(splitter->getToplevelSplitter());
}
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment