Ignore:
Timestamp:
2018-02-19T01:14:22+01:00 (9 months ago)
Author:
Don-vip
Message:

see #8039, see #10456 - disable more actions modifying the dataset

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/relation/DownloadMembersAction.java

    r13130 r13446  
    4747    @Override
    4848    protected void updateEnabledState() {
    49         setEnabled(!relations.isEmpty() && !Main.isOffline(OnlineResource.OSM_API));
     49        setEnabled(!relations.isEmpty() && !Main.isOffline(OnlineResource.OSM_API)
     50                && !relations.iterator().next().getDataSet().isReadOnly());
    5051    }
    5152}
Note: See TracChangeset for help on using the changeset viewer.