Ignore:
Timestamp:
2007-08-23T15:59:32+02:00 (17 years ago)
Author:
imi
Message:
  • fixed bug to allow move of one node
  • removed "new shiny beta" warning
  • fixed uploading data marks as modified when saved before
File:
1 edited

Legend:

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

    r303 r312  
    108108         */
    109109        public boolean uploadedModified = false;
    110         /**
    111          * Whether the data (or pieces of the data) was loaded from disk rather than from
    112          * the server directly. This affects the modified state.
    113          */
    114         private boolean fromDisk = false;
    115110
    116111        public final LinkedList<ModifiedChangedListener> listenerModified = new LinkedList<ModifiedChangedListener>();
     
    124119                super(name);
    125120                this.data = data;
    126                 this.fromDisk = associatedFile != null;
    127121                this.associatedFile = associatedFile;
    128122        }
     
    235229
    236230                // update the modified flag
    237                 if (fromDisk && processed != null && !dataAdded)
     231                if (associatedFile != null && processed != null && !dataAdded)
    238232                        return; // do nothing when uploading non-harmful changes.
    239233
    240234                // modified if server changed the data (esp. the id).
    241                 uploadedModified = fromDisk && processed != null && dataAdded;
     235                uploadedModified = associatedFile != null && processed != null && dataAdded;
    242236                setModified(uploadedModified);
    243237        }
Note: See TracChangeset for help on using the changeset viewer.