Changeset 234 in josm for src/org/openstreetmap


Ignore:
Timestamp:
2007-05-08T22:58:40+02:00 (17 years ago)
Author:
framm
Message:

Fixes bug introduced a bug with 233 that would never clear the modified flag after saving to file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java

    r233 r234  
    225225         * @param processed A list of all objects, that were actually uploaded.
    226226         *              May be <code>null</code>, which means nothing has been uploaded but
    227          *              saved to disk instead.
     227         *              saved to disk instead. Note that an empty collection for "processed"
     228         *      means that an upload has been attempted but failed.
    228229         */
    229230        public void cleanData(final Collection<OsmPrimitive> processed, boolean dataAdded) {
    230231
    231                 // return immediately if nothing really happened (typically when upload
    232                 // aborts due to a server connection error)
    233                 if ((processed == null || processed.isEmpty()) && !dataAdded)
     232                // return immediately if an upload attempt failed
     233                if (processed != null && processed.isEmpty() && !dataAdded)
    234234                        return;
    235235               
Note: See TracChangeset for help on using the changeset viewer.