Commit 67a41ea6 authored by Carlos Alves's avatar Carlos Alves Committed by Kurt Hindenburg
Browse files

Fix dbus setCurrentSession focus

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

BUG: 422262
FIXED-IN: 20.12
(cherry picked from commit 5f006d89)
parent cbbb8c9e
......@@ -1070,6 +1070,11 @@ void ViewManager::setCurrentSession(int sessionId)
auto *display = session->views().at(0);
if (display != nullptr) {
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