Commit e7d93d90 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇 Committed by Tomaz Canabrava
Browse files

Show non-default Port in full host name (%H) in tab bar

Makes it easy to spot several connections to the same host
on different ports (e.g. different controllers on the same
embedded device)
parent 7ceb93a3
Pipeline #97830 passed with stage
in 1 minute and 53 seconds
......@@ -189,7 +189,12 @@ QString SSHProcessInfo::format(const QString &input) const
output.replace(QLatin1String("%h"), _host.left(_host.indexOf(QLatin1Char('.'))));
output.replace(QLatin1String("%H"), _host);
QString fullHost = _host;
if (!_port.isEmpty() && _port != QLatin1String("22")) {
output.replace(QLatin1String("%H"), fullHost);
output.replace(QLatin1String("%c"), _command);
return output;
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