Changeset 12977 in josm


Ignore:
Timestamp:
2017-10-10T14:14:46+02:00 (7 years ago)
Author:
GerdP
Message:

see #15267 Let Overpass Query Wizard show newest entry instead of oldest

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/download/OverpassQueryWizardDialog.java

    r12904 r12977  
    9191
    9292        List<String> items = new ArrayList<>(OVERPASS_WIZARD_HISTORY.get());
     93        if (!items.isEmpty()) {
     94            queryWizard.setText(items.get(0));
     95        }
     96        // HistoryComboBox needs the reversed list
    9397        Collections.reverse(items);
    9498        queryWizard.setPossibleItems(items);
    95         if (!items.isEmpty()) {
    96             queryWizard.setText(items.get(0));
    97         }
    9899
    99100        setCancelButton(CANCEL + 1);
Note: See TracChangeset for help on using the changeset viewer.