Changeset 3961 in josm


Ignore:
Timestamp:
2011-03-06T22:06:57+01:00 (8 years ago)
Author:
mjulius
Message:

fix issue of default list of imagery providers being duplicated when hitting "reload defaults"
sort default list when reloading

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/ImageryLayerInfo.java

    r3826 r3961  
    2525    ArrayList<ImageryInfo> defaultLayers = new ArrayList<ImageryInfo>();
    2626
    27     private final static String[] DEFAULT_LAYER_SITES = { 
    28         "http://josm.openstreetmap.de/maps" 
     27    private final static String[] DEFAULT_LAYER_SITES = {
     28        "http://josm.openstreetmap.de/maps"
    2929    };
    3030
    3131    public void load() {
    3232        layers.clear();
     33        defaultLayers.clear();
    3334        Collection<String> defaults = Main.pref.getCollection(
    3435                "imagery.layers.default", Collections.<String>emptySet());
     
    9697                ? defaultsSave : defaults);
    9798        Collections.sort(layers);
     99        Collections.sort(defaultLayers);
    98100        save();
    99101    }
Note: See TracChangeset for help on using the changeset viewer.