Changeset 1894 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2009-08-03T15:00:34+02:00 (17 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 2 edited
-
SaveActionBase.java (modified) (1 diff)
-
UploadAction.java (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SaveActionBase.java
r1890 r1894 216 216 return; 217 217 } 218 layer.clean Data(null, false);218 layer.cleanupAfterSaveToDisk(); 219 219 } catch (IOException e) { 220 220 e.printStackTrace(); -
trunk/src/org/openstreetmap/josm/actions/UploadAction.java
r1885 r1894 235 235 ); 236 236 switch(ret) { 237 case JOptionPane.CLOSED_OPTION: return; 238 case JOptionPane.CANCEL_OPTION: return; 239 case 0: synchronizePrimitive(id); break; 240 case 1: synchronizeDataSet(); break; 241 default: 242 // should not happen 243 throw new IllegalStateException(tr("unexpected return value. Got {0}", ret)); 237 case JOptionPane.CLOSED_OPTION: return; 238 case JOptionPane.CANCEL_OPTION: return; 239 case 0: synchronizePrimitive(id); break; 240 case 1: synchronizeDataSet(); break; 241 default: 242 // should not happen 243 throw new IllegalStateException(tr("unexpected return value. Got {0}", ret)); 244 244 } 245 245 } … … 274 274 ); 275 275 switch(ret) { 276 case JOptionPane.CLOSED_OPTION: return; 277 case 1: return; 278 case 0: synchronizeDataSet(); break; 279 default: 280 // should not happen 281 throw new IllegalStateException(tr("unexpected return value. Got {0}", ret)); 276 case JOptionPane.CLOSED_OPTION: return; 277 case 1: return; 278 case 0: synchronizeDataSet(); break; 279 default: 280 // should not happen 281 throw new IllegalStateException(tr("unexpected return value. Got {0}", ret)); 282 282 } 283 283 } … … 537 537 try { 538 538 writer.uploadOsm(getCurrentDataSet().version, toUpload, progressMonitor.createSubTaskMonitor(ProgressMonitor.ALL_TICKS, false)); 539 getEditLayer().cleanData(writer.processed, !toUpload.isEmpty());540 539 } catch (Exception sxe) { 541 540 if (uploadCancelled) { … … 550 549 if (uploadCancelled) 551 550 return; 551 552 // we always clean the data, even in case of errors. It's possible the data was 553 // partially uploaded 554 // 555 getEditLayer().cleanupAfterUpload(writer.getProcessedPrimitives()); 552 556 if (lastException != null) { 553 557 handleFailedUpload(lastException);
Note:
See TracChangeset
for help on using the changeset viewer.
