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:
parent
5907fb956d
commit
e89af266e6
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