Changeset 9528 in josm for trunk/src/org
- Timestamp:
- 2016-01-18T20:33:54+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/UploadPrimitivesTask.java
r9527 r9528 26 26 import org.openstreetmap.josm.gui.HelpAwareOptionPane; 27 27 import org.openstreetmap.josm.gui.HelpAwareOptionPane.ButtonSpec; 28 import org.openstreetmap.josm.gui.JosmUserIdentityManager;29 28 import org.openstreetmap.josm.gui.Notification; 30 29 import org.openstreetmap.josm.gui.layer.OsmDataLayer; … … 295 294 } 296 295 } 297 // update the user information298 if (changeset.getUser() == null) {299 changeset.setUser(JosmUserIdentityManager.getInstance().asUser());300 }301 296 // if required close the changeset 302 297 // … … 316 311 317 312 @Override protected void finish() { 318 if (uploadCanceled)319 return;320 313 321 314 // depending on the success of the upload operation and on the policy for … … 335 328 UploadDialog.getUploadDialog().setSelectedChangesetForNextUpload(changeset); 336 329 } 330 if (uploadCanceled) return; 337 331 if (lastException == null) { 338 332 new Notification( -
trunk/src/org/openstreetmap/josm/io/OsmServerWriter.java
r9231 r9528 15 15 import org.openstreetmap.josm.data.osm.OsmPrimitive; 16 16 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; 17 import org.openstreetmap.josm.gui.JosmUserIdentityManager; 17 18 import org.openstreetmap.josm.gui.io.UploadStrategySpecification; 18 19 import org.openstreetmap.josm.gui.progress.NullProgressMonitor; … … 204 205 if (changeset.getId() == 0) { 205 206 api.openChangeset(changeset, monitor.createSubTaskMonitor(0, false)); 207 // update the user information 208 changeset.setUser(JosmUserIdentityManager.getInstance().asUser()); 206 209 } else { 207 210 api.updateChangeset(changeset, monitor.createSubTaskMonitor(0, false));
Note:
See TracChangeset
for help on using the changeset viewer.