Changeset 18693 in josm


Ignore:
Timestamp:
2023-03-14T22:49:24+01:00 (20 months ago)
Author:
taylor.smock
Message:

Fix #22811: Map layer is not dirty after processing OSC that adds one node

The setRequiresUploadToServer(isModified()) calls have been replaced to be
consistent with r13161 (see #13153).

File:
1 edited

Legend:

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

    r18466 r18693  
    10881088    public void onPostLoadFromFile() {
    10891089        setRequiresSaveToFile(false);
    1090         setRequiresUploadToServer(isModified());
     1090        setRequiresUploadToServer(getDataSet().requiresUploadToServer());
    10911091        invalidate();
    10921092    }
     
    10971097    public void onPostDownloadFromServer() {
    10981098        setRequiresSaveToFile(true);
    1099         setRequiresUploadToServer(isModified());
     1099        setRequiresUploadToServer(getDataSet().requiresUploadToServer());
    11001100        invalidate();
    11011101    }
     
    11041104    public void onPostSaveToFile() {
    11051105        setRequiresSaveToFile(false);
    1106         setRequiresUploadToServer(isModified());
     1106        setRequiresUploadToServer(getDataSet().requiresUploadToServer());
    11071107    }
    11081108
    11091109    @Override
    11101110    public void onPostUploadToServer() {
    1111         setRequiresUploadToServer(isModified());
     1111        setRequiresUploadToServer(getDataSet().requiresUploadToServer());
    11121112        // keep requiresSaveToDisk unchanged
    11131113    }
Note: See TracChangeset for help on using the changeset viewer.