Changeset 13446 in josm
- Timestamp:
- 2018-02-19T01:14:22+01:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/relation/DownloadMembersAction.java
r13130 r13446 47 47 @Override 48 48 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()); 50 51 } 51 52 } -
trunk/src/org/openstreetmap/josm/actions/relation/DownloadSelectedIncompleteMembersAction.java
r13130 r13446 67 67 @Override 68 68 protected void updateEnabledState() { 69 setEnabled(!relations.isEmpty() && !incompleteMembers.isEmpty() && !Main.isOffline(OnlineResource.OSM_API)); 69 setEnabled(!relations.isEmpty() && !incompleteMembers.isEmpty() && !Main.isOffline(OnlineResource.OSM_API) 70 && !relations.iterator().next().getDataSet().isReadOnly()); 70 71 } 71 72 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PresetListPanel.java
r11381 r13446 41 41 int answer = t.showDialog(selection, false); 42 42 43 if (answer == TaggingPreset.DIALOG_ANSWER_APPLY ) {43 if (answer == TaggingPreset.DIALOG_ANSWER_APPLY && !selection.iterator().next().getDataSet().isReadOnly()) { 44 44 presetHandler.updateTags(t.getChangedTags()); 45 45 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r13434 r13446 1271 1271 Collection<OsmPrimitive> sel = Main.main.getInProgressSelection(); 1272 1272 String clipboard = ClipboardUtils.getClipboardStringContent(); 1273 if (sel.isEmpty() || clipboard == null )1273 if (sel.isEmpty() || clipboard == null || sel.iterator().next().getDataSet().isReadOnly()) 1274 1274 return; 1275 1275 MainApplication.undoRedo.add(new ChangePropertyCommand(sel, key, Utils.strip(clipboard))); -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPreset.java
r13252 r13446 493 493 494 494 answer = new PresetDialog(p, title, preset_name_label ? null : (ImageIcon) getValue(Action.SMALL_ICON), 495 sel.isEmpty() , showNewRelation).getValue();495 sel.isEmpty() || sel.iterator().next().getDataSet().isReadOnly(), showNewRelation).getValue(); 496 496 } 497 497 if (!showNewRelation && answer == 2)
Note:
See TracChangeset
for help on using the changeset viewer.