Changeset View
Changeset View
Standalone View
Standalone View
src/Session.cpp
Show First 20 Lines • Show All 1151 Lines • ▼ Show 20 Line(s) | 1148 | { | |||
---|---|---|---|---|---|
1152 | 1152 | | |||
1153 | QString path; | 1153 | QString path; | ||
1154 | 1154 | | |||
1155 | updateSessionProcessInfo(); | 1155 | updateSessionProcessInfo(); | ||
1156 | if (_sessionProcessInfo->isValid()) { | 1156 | if (_sessionProcessInfo->isValid()) { | ||
1157 | bool ok = false; | 1157 | bool ok = false; | ||
1158 | 1158 | | |||
1159 | // check if foreground process is bookmark-able | 1159 | // check if foreground process is bookmark-able | ||
1160 | if (isForegroundProcessActive()) { | 1160 | if (isForegroundProcessActive() && _foregroundProcessInfo->isValid()) { | ||
1161 | // for remote connections, save the user and host | 1161 | // for remote connections, save the user and host | ||
1162 | // bright ideas to get the directory at the other end are welcome :) | 1162 | // bright ideas to get the directory at the other end are welcome :) | ||
1163 | if (_foregroundProcessInfo->name(&ok) == QLatin1String("ssh") && ok) { | 1163 | if (_foregroundProcessInfo->name(&ok) == QLatin1String("ssh") && ok) { | ||
1164 | SSHProcessInfo sshInfo(*_foregroundProcessInfo); | 1164 | SSHProcessInfo sshInfo(*_foregroundProcessInfo); | ||
1165 | 1165 | | |||
1166 | QUrl url; | 1166 | QUrl url; | ||
1167 | url.setScheme(QStringLiteral("ssh")); | 1167 | url.setScheme(QStringLiteral("ssh")); | ||
1168 | url.setUserName(sshInfo.userName()); | 1168 | url.setUserName(sshInfo.userName()); | ||
▲ Show 20 Lines • Show All 579 Lines • Show Last 20 Lines |