Ignore:
Timestamp:
2018-03-03T17:59:48+01:00 (7 months ago)
Author:
Don-vip
Message:

fix #8039, see #10456 - fix bugs with non-downloadable layers

File:
1 edited

Legend:

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

    r13130 r13486  
    1515import org.openstreetmap.josm.gui.dialogs.relation.MemberTableModel;
    1616import org.openstreetmap.josm.gui.layer.OsmDataLayer;
    17 import org.openstreetmap.josm.io.OnlineResource;
    1817import org.openstreetmap.josm.tools.ImageProvider;
    1918import org.openstreetmap.josm.tools.Shortcut;
     
    5958    @Override
    6059    protected void updateEnabledState() {
    61         setEnabled(memberTableModel.hasIncompleteMembers() && !Main.isOffline(OnlineResource.OSM_API));
     60        setEnabled(memberTableModel.hasIncompleteMembers() && canDownload());
    6261    }
    6362}
Note: See TracChangeset for help on using the changeset viewer.