Changeset 8877 in josm for trunk/src/org


Ignore:
Timestamp:
2015-10-14T23:48:08+02:00 (9 years ago)
Author:
simon04
Message:

fix #11926 - Presets: option to disable alphabetic sorting for a single key

Specify the values_sort="false" attribute for the <combo> of
<multiselect>.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/ComboMultiSelect.java

    r8872 r8877  
    9999    /** Disabled internationalisation for value to avoid mistakes, see #11696 */
    100100    public boolean values_no_i18n;
     101    /** Whether to sort the values, defaults to true. */
     102    public boolean values_sort = true;
    101103    public String display_values;
    102104    /** The localized version of {@link #display_values}. */
     
    425427        }
    426428
    427         if (Main.pref.getBoolean("taggingpreset.sortvalues", true)) {
     429        if (Main.pref.getBoolean("taggingpreset.sortvalues", true) && values_sort) {
    428430            Collections.sort(entries);
    429431        }
Note: See TracChangeset for help on using the changeset viewer.