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:
parent
0bd36cccdd
commit
f6f9d46b8e
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue