1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Bug 470081 - Fix connection type combo

Change-Id: I7caf683725c9bb496cc476661b41d51a3be12b1b
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 5907fb956d
commit e89af266e6

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;
}