mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 02:36: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() {
|
private IRemoteConnectionType getSelectedConnectionType() {
|
||||||
if (fDefaultConnectionType != null) {
|
|
||||||
return fDefaultConnectionType;
|
|
||||||
}
|
|
||||||
if (fConnectionTypeCombo != null) {
|
if (fConnectionTypeCombo != null) {
|
||||||
int selectionIndex = fConnectionTypeCombo.getSelectionIndex();
|
int selectionIndex = fConnectionTypeCombo.getSelectionIndex();
|
||||||
if (fConnectionTypes.size() > 0 && selectionIndex > 0) {
|
if (fConnectionTypes.size() > 0 && selectionIndex > 0) {
|
||||||
return fConnectionTypes.get(selectionIndex - 1);
|
return fConnectionTypes.get(selectionIndex - 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (fDefaultConnectionType != null) {
|
||||||
|
return fDefaultConnectionType;
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue