Ignore:
Timestamp:
2016-01-18T20:33:54+01:00 (9 years ago)
Author:
simon04
Message:

fix #11305 see #10306 - After canceling upload a new instead of the existing still open changeset is used on next upload

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmServerWriter.java

    r9231 r9528  
    1515import org.openstreetmap.josm.data.osm.OsmPrimitive;
    1616import org.openstreetmap.josm.data.osm.OsmPrimitiveType;
     17import org.openstreetmap.josm.gui.JosmUserIdentityManager;
    1718import org.openstreetmap.josm.gui.io.UploadStrategySpecification;
    1819import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
     
    204205            if (changeset.getId() == 0) {
    205206                api.openChangeset(changeset, monitor.createSubTaskMonitor(0, false));
     207                // update the user information
     208                changeset.setUser(JosmUserIdentityManager.getInstance().asUser());
    206209            } else {
    207210                api.updateChangeset(changeset, monitor.createSubTaskMonitor(0, false));
Note: See TracChangeset for help on using the changeset viewer.