Ignore:
Timestamp:
2019-07-10T23:58:43+02:00 (5 years ago)
Author:
Don-vip
Message:

fix #17910 - Enable download of incomplete members from cloned relations in relation editor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/AbstractRelationEditorAction.java

    r14214 r15240  
    9090
    9191    protected final boolean canDownload() {
    92         if (editorAccess.getEditor().getRelation() == null)
    93             return false;
    94         DataSet ds = editorAccess.getEditor().getRelation().getDataSet();
     92        DataSet ds = editorAccess.getEditor().getLayer().getDataSet();
    9593        return !NetworkManager.isOffline(OnlineResource.OSM_API) && ds != null && !ds.isLocked()
    9694                && DownloadPolicy.BLOCKED != ds.getDownloadPolicy();
Note: See TracChangeset for help on using the changeset viewer.