Changeset 18098 in josm for trunk/src/org


Ignore:
Timestamp:
2021-08-01T18:09:14+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #20134 - hopefully fix #20690 too - fix AutoCompletingComboBox selection (patch by marcello)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletingComboBox.java

    r15885 r18098  
    158158            }
    159159
    160             setSelectedItem(item);
    161160            if (initial) {
    162161                start = 0;
     
    168167                    super.remove(0, size);
    169168                    super.insertString(0, newText, a);
     169                    AutoCompletingComboBox.this.setSelectedItem(item);
    170170                    selecting = false;
    171171                    start = size;
     
    185185                editorComponent.select(start, end);
    186186            }
    187         }
    188 
    189         private void setSelectedItem(Object item) {
    190             selecting = true;
    191             AutoCompletingComboBox.this.setSelectedItem(item);
    192             selecting = false;
    193187        }
    194188
Note: See TracChangeset for help on using the changeset viewer.