mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-13 19:25:38 +02:00
222954: fix default selection
This commit is contained in:
parent
e4c3404795
commit
41ee517929
1 changed files with 3 additions and 3 deletions
|
@ -108,9 +108,9 @@ public class UISelectWidget extends InputUIElement {
|
||||||
|
|
||||||
// populate combo
|
// populate combo
|
||||||
int index= 0, defaultIndex= 0;
|
int index= 0, defaultIndex= 0;
|
||||||
for(String name : value2name.values()) {
|
for(String value : value2name.keySet()) {
|
||||||
combo.add(name);
|
combo.add(value2name.get(value));
|
||||||
if(name.equals(defaultValue)) {
|
if(value.equals(defaultValue)) {
|
||||||
defaultIndex= index;
|
defaultIndex= index;
|
||||||
}
|
}
|
||||||
index++;
|
index++;
|
||||||
|
|
Loading…
Add table
Reference in a new issue