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: hjk <hjk@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2016-05-02 20:40:51 +03:00
committed by Orgad Shaneh
parent 1cbb4cc954
commit cad9372ad9

View File

@@ -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;