Changeset 2241 in josm for trunk


Ignore:
Timestamp:
2009-10-03T17:18:41+02:00 (15 years ago)
Author:
Gubaer
Message:

Make sure upload comments are displayed in order, most recent upload comments first.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/UploadDialog.java

    r2234 r2241  
    623623            cmt = new HistoryComboBox();
    624624            List<String> cmtHistory = new LinkedList<String>(Main.pref.getCollection(HISTORY_KEY, new LinkedList<String>()));
     625            // we have to reverse the history, because ComboBoxHistory will reverse it again
     626            // in addElement()
     627            //
     628            Collections.reverse(cmtHistory);
    625629            cmt.setPossibleItems(cmtHistory);
    626630            cmt.getEditor().addActionListener(
Note: See TracChangeset for help on using the changeset viewer.