Changeset 3978 in josm


Ignore:
Timestamp:
2011-03-11T22:52:07+01:00 (14 years ago)
Author:
bastiK
Message:

fix reload of imagery sources

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

Legend:

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

    r3961 r3978  
    2929    };
    3030
    31     public void load() {
     31    public void load(boolean clearCache) {
    3232        layers.clear();
    3333        defaultLayers.clear();
     
    4444            try
    4545            {
     46                if (clearCache) {
     47                    MirroredInputStream.cleanup(source);
     48                }
    4649                MirroredInputStream s = new MirroredInputStream(source, -1);
    4750                InputStreamReader r;
  • trunk/src/org/openstreetmap/josm/gui/preferences/ImageryPreference.java

    r3847 r3978  
    567567
    568568            public void actionPerformed(ActionEvent evt) {
    569                 layerInfo.load();
     569                layerInfo.load(true);
    570570                modeldef.fireTableDataChanged();
    571571            }
     
    857857            settingsMigration = null;
    858858        }
    859         ImageryLayerInfo.instance.load();
     859        ImageryLayerInfo.instance.load(false);
    860860        OffsetBookmark.loadBookmarks();
    861861        Main.main.menu.imageryMenu.refreshImageryMenu();
Note: See TracChangeset for help on using the changeset viewer.