mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 06:45:43 +02:00
[167071] use telnet ports that cannot be mapped verbatim
This commit is contained in:
parent
2629b26966
commit
b1691c603d
2 changed files with 4 additions and 3 deletions
|
@ -11,7 +11,7 @@
|
||||||
* Helmut Haigermoser and Ted Williams.
|
* Helmut Haigermoser and Ted Williams.
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Michael Scharf (Wind River) - extracted from TerminalConsts
|
* Michael Scharf (Wind River) - extracted from TerminalNetworkPortMap
|
||||||
* Martin Oberhuber (Wind River) - fixed copyright headers and beautified
|
* Martin Oberhuber (Wind River) - fixed copyright headers and beautified
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.tm.terminal.internal.telnet;
|
package org.eclipse.tm.terminal.internal.telnet;
|
||||||
|
|
|
@ -66,8 +66,9 @@ public class TelnetSettingsPage implements ISettingsPage {
|
||||||
private void setNetworkPort(String strNetworkPort) {
|
private void setNetworkPort(String strNetworkPort) {
|
||||||
if (strNetworkPort!=null) {
|
if (strNetworkPort!=null) {
|
||||||
String strPortName = getNetworkPortMap().findPortName(strNetworkPort);
|
String strPortName = getNetworkPortMap().findPortName(strNetworkPort);
|
||||||
if(strPortName==null)
|
if(strPortName==null) {
|
||||||
strPortName=""; //$NON-NLS-1$
|
strPortName=strNetworkPort; //fallback to verbatim port if not found
|
||||||
|
}
|
||||||
int nIndex = fNetworkPortCombo.indexOf(strPortName);
|
int nIndex = fNetworkPortCombo.indexOf(strPortName);
|
||||||
|
|
||||||
if (nIndex == -1) {
|
if (nIndex == -1) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue