forked from qt-creator/qt-creator
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:
committed by
Orgad Shaneh
parent
1cbb4cc954
commit
cad9372ad9
@@ -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;
|
||||
|
Reference in New Issue
Block a user