Commit cad9372a authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

Debugger: Do not append port if host not found

When choosing a kit with a bare metal device in Attach to Running Server
and *not* overriding the address, the address is not determined.

Change-Id: I431d0edee0635cda773e94737752aa9c31a1cac2
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent 1cbb4cc9
......@@ -402,7 +402,8 @@ bool StartApplicationDialog::run(QWidget *parent, DebuggerRunParameters *rp, Kit
rp->remoteChannel = inputAddress;
else
rp->remoteChannel = rp->connParams.host;
rp->remoteChannel += QLatin1Char(':') + QString::number(newParameters.serverPort);
if (!rp->remoteChannel.isEmpty())
rp->remoteChannel += QLatin1Char(':') + QString::number(newParameters.serverPort);
rp->displayName = newParameters.displayName();
rp->inferior.workingDirectory = newParameters.runnable.workingDirectory;
rp->useTerminal = newParameters.runnable.runMode == ApplicationLauncher::Console;
......
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