- Timestamp:
- 2018-03-30T19:33:33+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PresetListPanel.java
r13453 r13586 12 12 import javax.swing.JPanel; 13 13 14 import org.openstreetmap.josm.data.osm.DataSet; 14 15 import org.openstreetmap.josm.data.osm.OsmPrimitive; 15 16 import org.openstreetmap.josm.gui.tagging.presets.TaggingPreset; … … 40 41 return; 41 42 int answer = t.showDialog(selection, false); 43 DataSet ds = selection.iterator().next().getDataSet(); 44 boolean locked = ds != null && ds.isLocked(); 42 45 43 if (answer == TaggingPreset.DIALOG_ANSWER_APPLY && ! selection.iterator().next().getDataSet().isLocked()) {46 if (answer == TaggingPreset.DIALOG_ANSWER_APPLY && !locked) { 44 47 presetHandler.updateTags(t.getChangedTags()); 45 48 }
Note:
See TracChangeset
for help on using the changeset viewer.