Ignore:
Timestamp:
2009-06-20T09:31:00+02:00 (15 years ago)
Author:
Gubaer
Message:

removed old conflict resolution code
fixed bug in OsmApi (missing changeset initialization)

Location:
trunk/src/org/openstreetmap/josm/io
Files:
2 edited

Legend:

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

    r1677 r1682  
    307307     * @return list of processed primitives
    308308     * @throws OsmTransferException if something is wrong
    309      * @throws OsmTransferCancelledException  if the upload was cancelled by the user
    310309     */
    311310    public Collection<OsmPrimitive> uploadDiff(final Collection<OsmPrimitive> list) throws OsmTransferException {
  • trunk/src/org/openstreetmap/josm/io/OsmServerWriter.java

    r1677 r1682  
    8484        processed = new LinkedList<OsmPrimitive>();
    8585
    86         // initialize API. Abort upload in case of configuration or network
    87         // errors
    88         //
    89         try {
    90             api.initialize();
    91         } catch(Exception e) {
    92             throw new OsmApiInitializationException(e);
    93         }
     86        api.initialize();
    9487
    9588        Main.pleaseWaitDlg.progress.setMaximum(primitives.size());
     
    125118            // upload changes individually (90% of code is for the status display...)
    126119            //
     120            api.createChangeset(getChangesetComment());
    127121            NameVisitor v = new NameVisitor();
    128122            uploadStartTime = System.currentTimeMillis();
     
    139133                Main.pleaseWaitDlg.progress.setValue(progress+1);
    140134            }
     135            api.stopChangeset();
    141136        }
    142137    }
Note: See TracChangeset for help on using the changeset viewer.