mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-10 01:35:39 +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
|
||||
int index= 0, defaultIndex= 0;
|
||||
for(String name : value2name.values()) {
|
||||
combo.add(name);
|
||||
if(name.equals(defaultValue)) {
|
||||
for(String value : value2name.keySet()) {
|
||||
combo.add(value2name.get(value));
|
||||
if(value.equals(defaultValue)) {
|
||||
defaultIndex= index;
|
||||
}
|
||||
index++;
|
||||
|
|
Loading…
Add table
Reference in a new issue