Changeset 18211 in josm for trunk/src/org/openstreetmap/josm/actions/DownloadReferrersAction.java
- Timestamp:
- 2021-09-12T02:10:25+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/DownloadReferrersAction.java
r18208 r18211 69 69 protected void updateEnabledState(Collection<? extends OsmPrimitive> selection) { 70 70 updateEnabledStateOnModifiableSelection(selection); 71 if (isEnabled() && selection != null && !selection.isEmpty()71 if (isEnabled() && !Utils.isEmpty(selection) 72 72 && DownloadPolicy.BLOCKED.equals(selection.iterator().next().getDataSet().getDownloadPolicy())) { 73 73 setEnabled(false);
Note:
See TracChangeset
for help on using the changeset viewer.
