Changeset 5112 in josm
- Timestamp:
- 2012-03-21T23:53:24+01:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r5002 r5112 543 543 List<OsmDataLayer> layersWithUnmodifiedChanges = new ArrayList<OsmDataLayer>(); 544 544 for (OsmDataLayer l: Main.map.mapView.getLayersOfType(OsmDataLayer.class)) { 545 if ( l.requiresSaveToFile() || l.requiresUploadToServer()) {545 if ((l.requiresSaveToFile() || l.requiresUploadToServer()) && l.data.isModified()) { 546 546 layersWithUnmodifiedChanges.add(l); 547 547 } -
trunk/src/org/openstreetmap/josm/command/AddCommand.java
r5077 r5112 49 49 @Override public boolean executeCommand() { 50 50 getLayer().data.addPrimitive(osm); 51 osm.setModified(true); 51 52 return true; 52 53 }
Note:
See TracChangeset
for help on using the changeset viewer.