Changeset 18994 in josm for trunk/src/org


Ignore:
Timestamp:
2024-02-22T16:49:07+01:00 (9 months ago)
Author:
stoecker
Message:

fix #23506, see #23408 - fix the save/upload layer preconditions - neither the original, nor the #23408 variant makes real sense

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/SaveLayersDialog.java

    r18941 r18994  
    123123                AbstractModifiableLayer odl = (AbstractModifiableLayer) l;
    124124                if (odl.isModified() &&
    125                         (odl.isSavable() || odl.isUploadable() ||
    126                                 odl.requiresSaveToFile() ||
    127                                 odl.requiresUploadToServer())) {
     125                        (odl.isSavable() && odl.requiresSaveToFile()) ||
     126                        (odl.isUploadable() && odl.requiresUploadToServer() && !odl.isUploadDiscouraged())) {
    128127                    layersWithUnsavedChanges.add(odl);
    129128                }
Note: See TracChangeset for help on using the changeset viewer.