Ignore:
Timestamp:
2018-03-03T17:59:48+01:00 (5 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/DownloadSelectedIncompleteMembersAction.java

    r13130 r13486  
    77import java.awt.event.ActionEvent;
    88
    9 import org.openstreetmap.josm.Main;
    109import org.openstreetmap.josm.gui.MainApplication;
    1110import org.openstreetmap.josm.gui.dialogs.relation.DownloadRelationMemberTask;
     
    1413import org.openstreetmap.josm.gui.dialogs.relation.MemberTableModel;
    1514import org.openstreetmap.josm.gui.layer.OsmDataLayer;
    16 import org.openstreetmap.josm.io.OnlineResource;
    1715import org.openstreetmap.josm.tools.ImageProvider;
    1816
     
    5452    @Override
    5553    protected void updateEnabledState() {
    56         setEnabled(memberTableModel.hasIncompleteSelectedMembers() && !Main.isOffline(OnlineResource.OSM_API));
     54        setEnabled(memberTableModel.hasIncompleteSelectedMembers() && canDownload());
    5755    }
    5856}
Note: See TracChangeset for help on using the changeset viewer.