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

Update foreground pgroup info before accessing it

Fixes a potential crash when opening the right mouse button context menu
just after launching some process in the shell, before konsole has had
any chance to update the foreground process group information.

BUG: 454122
BUG: 458157
(cherry picked from commit bc127dd2)
parent 583c7a64
Pipeline #274085 passed with stage
in 2 minutes and 32 seconds
......@@ -1283,7 +1283,7 @@ QUrl Session::getUrl()
bool ok = false;
// check if foreground process is bookmark-able
if (isForegroundProcessActive() && _foregroundProcessInfo->isValid()) {
if (isForegroundProcessActive() && updateForegroundProcessInfo() && _foregroundProcessInfo->isValid()) {
// for remote connections, save the user and host
// bright ideas to get the directory at the other end are welcome :)
if (_foregroundProcessInfo->name(&ok) == QLatin1String("ssh") && ok) {
Supports Markdown
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