Changeset 15608 in josm


Ignore:
Timestamp:
2019-12-23T21:15:39+01:00 (6 months ago)
Author:
GerdP
Message:

fix #18456: validation not possible right away (regression from r14835)
Enable validator when data layer exists, no matter if it is empty or not.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/ValidateAction.java

    r14882 r15608  
    1212import java.util.Optional;
    1313
    14 import org.openstreetmap.josm.data.osm.DataSet;
    1514import org.openstreetmap.josm.data.osm.OsmPrimitive;
    1615import org.openstreetmap.josm.data.preferences.sources.ValidatorPrefHelper;
     
    9695    @Override
    9796    public void updateEnabledState() {
    98         DataSet ds = getLayerManager().getActiveDataSet();
    99         setEnabled(ds != null && !ds.isEmpty());
     97        setEnabled(getLayerManager().getActiveDataSet() != null);
    10098    }
    10199
Note: See TracChangeset for help on using the changeset viewer.