Ignore:
Timestamp:
2018-06-13T23:37:59+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #11000 - add layer_locked, download_policy, upload_policy to download handlers (import, load_data, load_object and load_and_zoom). Bump remote control version to 1.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java

    r13928 r13929  
    267267                layerName = OsmDataLayer.createNewName();
    268268            }
     269            if (settings.getDownloadPolicy() != null) {
     270                dataSet.setDownloadPolicy(settings.getDownloadPolicy());
     271            }
     272            if (settings.getUploadPolicy() != null) {
     273                dataSet.setUploadPolicy(settings.getUploadPolicy());
     274            }
     275            if (dataSet.isLocked() && !settings.isLocked()) {
     276                dataSet.unlock();
     277            } else if (!dataSet.isLocked() && settings.isLocked()) {
     278                dataSet.lock();
     279            }
    269280            return new OsmDataLayer(dataSet, layerName, null);
    270281        }
Note: See TracChangeset for help on using the changeset viewer.