1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-28 03:15:33 +02:00

[167071] use telnet ports that cannot be mapped verbatim

This commit is contained in:
Martin Oberhuber 2006-12-07 14:21:29 +00:00
parent 2629b26966
commit b1691c603d
2 changed files with 4 additions and 3 deletions

View file

@ -11,7 +11,7 @@
* Helmut Haigermoser and Ted Williams.
*
* Contributors:
* Michael Scharf (Wind River) - extracted from TerminalConsts
* Michael Scharf (Wind River) - extracted from TerminalNetworkPortMap
* Martin Oberhuber (Wind River) - fixed copyright headers and beautified
*******************************************************************************/
package org.eclipse.tm.terminal.internal.telnet;

View file

@ -66,8 +66,9 @@ public class TelnetSettingsPage implements ISettingsPage {
private void setNetworkPort(String strNetworkPort) {
if (strNetworkPort!=null) {
String strPortName = getNetworkPortMap().findPortName(strNetworkPort);
if(strPortName==null)
strPortName=""; //$NON-NLS-1$
if(strPortName==null) {
strPortName=strNetworkPort; //fallback to verbatim port if not found
}
int nIndex = fNetworkPortCombo.indexOf(strPortName);
if (nIndex == -1) {