1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 18:26:01 +02:00

Bug 470081 - Fix connection type combo

Change-Id: I51ff9b0a981110a118717a30d304dab8e1dfb480
Signed-off-by: Greg Watson <g.watson@computer.org>
This commit is contained in:
Greg Watson 2015-06-12 10:37:01 -04:00
parent 0bd36cccdd
commit f6f9d46b8e

View file

@ -370,15 +370,15 @@ public class RemoteConnectionWidget extends Composite {
}
private IRemoteConnectionType getSelectedConnectionType() {
if (fDefaultConnectionType != null) {
return fDefaultConnectionType;
}
if (fConnectionTypeCombo != null) {
int selectionIndex = fConnectionTypeCombo.getSelectionIndex();
if (fConnectionTypes.size() > 0 && selectionIndex > 0) {
return fConnectionTypes.get(selectionIndex - 1);
}
}
if (fDefaultConnectionType != null) {
return fDefaultConnectionType;
}
return null;
}