- Timestamp:
- 2009-08-23T22:47:36+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/UploadAction.java
r1894 r1991 27 27 import org.openstreetmap.josm.Main; 28 28 import org.openstreetmap.josm.data.conflict.ConflictCollection; 29 import org.openstreetmap.josm.data.osm.DataSet; 29 30 import org.openstreetmap.josm.data.osm.OsmPrimitive; 30 31 import org.openstreetmap.josm.gui.ExceptionDialogUtil; … … 235 236 ); 236 237 switch(ret) { 237 238 239 240 241 242 243 238 case JOptionPane.CLOSED_OPTION: return; 239 case JOptionPane.CANCEL_OPTION: return; 240 case 0: synchronizePrimitive(id); break; 241 case 1: synchronizeDataSet(); break; 242 default: 243 // should not happen 244 throw new IllegalStateException(tr("unexpected return value. Got {0}", ret)); 244 245 } 245 246 } … … 274 275 ); 275 276 switch(ret) { 276 277 278 279 280 281 277 case JOptionPane.CLOSED_OPTION: return; 278 case 1: return; 279 case 0: synchronizeDataSet(); break; 280 default: 281 // should not happen 282 throw new IllegalStateException(tr("unexpected return value. Got {0}", ret)); 282 283 } 283 284 } … … 554 555 // 555 556 getEditLayer().cleanupAfterUpload(writer.getProcessedPrimitives()); 557 DataSet.fireSelectionChanged(getEditLayer().data.getSelected()); 558 getEditLayer().fireDataChange(); 556 559 if (lastException != null) { 557 560 handleFailedUpload(lastException);
Note:
See TracChangeset
for help on using the changeset viewer.