- Timestamp:
- 2018-02-18T21:33:30+01:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/UploadPrimitivesTask.java
r13392 r13440 220 220 // partially uploaded. Better run on EDT. 221 221 Runnable r = () -> { 222 layer.cleanupAfterUpload(processedPrimitives); 223 layer.onPostUploadToServer(); 224 ChangesetCache.getInstance().update(changeset); 222 boolean readOnly = layer.isReadOnly(); 223 if (readOnly) { 224 layer.unsetReadOnly(); 225 } 226 try { 227 layer.cleanupAfterUpload(processedPrimitives); 228 layer.onPostUploadToServer(); 229 ChangesetCache.getInstance().update(changeset); 230 } finally { 231 if (readOnly) { 232 layer.setReadOnly(); 233 } 234 } 225 235 }; 226 236 -
trunk/src/org/openstreetmap/josm/io/DiffResultProcessor.java
r12470 r13440 121 121 ds = primitives.iterator().next().getDataSet(); 122 122 } 123 boolean readOnly = false; 123 124 if (ds != null) { 125 readOnly = ds.isReadOnly(); 126 if (readOnly) { 127 ds.unsetReadOnly(); 128 } 124 129 ds.beginUpdate(); 125 130 } … … 152 157 if (ds != null) { 153 158 ds.endUpdate(); 159 if (readOnly) { 160 ds.setReadOnly(); 161 } 154 162 } 155 163 monitor.finishTask();
Note:
See TracChangeset
for help on using the changeset viewer.