Changeset 13453 in josm for trunk/src/org/openstreetmap/josm/actions/JosmAction.java
- Timestamp:
- 2018-02-24T18:58:28+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/JosmAction.java
r13434 r13453 350 350 protected final void updateEnabledStateOnCurrentSelection(boolean allowReadOnly) { 351 351 DataSet ds = getLayerManager().getActiveDataSet(); 352 if (ds != null && (allowReadOnly || !ds.is ReadOnly())) {352 if (ds != null && (allowReadOnly || !ds.isLocked())) { 353 353 updateEnabledState(ds.getSelected()); 354 354 } else { … … 366 366 protected final void updateEnabledStateOnModifiableSelection(Collection<? extends OsmPrimitive> selection) { 367 367 setEnabled(selection != null && !selection.isEmpty() 368 && selection.stream().map(OsmPrimitive::getDataSet).noneMatch(DataSet::is ReadOnly));368 && selection.stream().map(OsmPrimitive::getDataSet).noneMatch(DataSet::isLocked)); 369 369 } 370 370
Note:
See TracChangeset
for help on using the changeset viewer.