Ticket #4077: 4077.patch

File 4077.patch, 740 bytes (added by sfriedle, 10 years ago)
  • src/org/openstreetmap/josm/Main.java

     
    587587        SaveLayersDialog dialog = new SaveLayersDialog(Main.parent);
    588588        List<OsmDataLayer> layersWithUnmodifiedChanges = new ArrayList<OsmDataLayer>();
    589589        for (OsmDataLayer l: Main.map.mapView.getLayersOfType(OsmDataLayer.class)) {
    590             if (l.requiresSaveToFile() || l.requiresUploadToServer()) {
     590            if ((l.requiresSaveToFile() || l.requiresUploadToServer()) && l.data.isModified()) {
    591591                layersWithUnmodifiedChanges.add(l);
    592592            }
    593593        }