Changeset 4216 in josm for trunk/src/org


Ignore:
Timestamp:
2011-07-09T00:38:49+02:00 (13 years ago)
Author:
bastiK
Message:

see #6562 - loading of default imagery sources broken

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

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

    r4203 r4216  
    3737    }
    3838
     39    public void clear() {
     40        layers.clear();
     41    }
     42
    3943    public void load() {
    40         layers.clear();
    4144        for(Collection<String> c : Main.pref.getArray("imagery.layers",
    4245                Collections.<Collection<String>>emptySet())) {
  • trunk/src/org/openstreetmap/josm/gui/preferences/ImageryPreference.java

    r4198 r4216  
    292292        boolean restartRequired = false;
    293293        layerInfo.save();
     294        ImageryLayerInfo.instance.clear();
    294295        ImageryLayerInfo.instance.load();
    295296        Main.main.menu.imageryMenu.refreshImageryMenu();
     
    836837
    837838    public static void initialize() {
     839        ImageryLayerInfo.instance.clear();
    838840        ImageryLayerInfo.instance.loadDefaults(false);
    839841        ImageryLayerInfo.instance.load();
Note: See TracChangeset for help on using the changeset viewer.