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:
parent
2629b26966
commit
b1691c603d
2 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue