Commit a07c4594 authored by Luis Javier Merino's avatar Luis Javier Merino Committed by Kurt Hindenburg
Browse files

Switch focus when closing inactive tab with splits

When closing an inactive tab with splits, focusAnotherTerminal() was not
transferring focus to any TerminalDisplay, resulting in having no active
session on ViewManager, which would then crash when splitting the view.

BUG: 446830
parent 2f2ae3d9
Pipeline #122392 passed with stage
in 1 minute and 57 seconds
......@@ -570,7 +570,9 @@ void ViewManager::focusAnotherTerminal(ViewSplitter *toplevelSplitter)
}
}
}
} else if (_terminalDisplayHistory.count() >= 1) {
}
if (_terminalDisplayHistory.count() >= 1) {
// Give focus to the last used terminal tab
switchToTerminalDisplay(_terminalDisplayHistory[0]);
}
......
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