Changeset 11174 in josm for trunk/src/org


Ignore:
Timestamp:
2016-10-26T23:04:41+02:00 (8 years ago)
Author:
wiktorn
Message:

Remove mysterious code.

There is no reason to disallow adding WMS/WMTS layers when no layers are
active. Also #2519 is marked as wontfix

File:
1 edited

Legend:

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

    r11017 r11174  
    156156    @Override
    157157    protected void updateEnabledState() {
    158         ImageryType type = info.getImageryType();
    159         // never enable blacklisted entries. Do not add same imagery layer twice (fix #2519)
    160158        if (info.isBlacklisted()) {
    161159            setEnabled(false);
    162         } else if (type == ImageryType.TMS || type == ImageryType.BING || type == ImageryType.SCANEX) {
     160        } else {
    163161            setEnabled(true);
    164         } else {
    165             setEnabled(!Main.getLayerManager().getLayers().isEmpty());
    166162        }
    167163    }
Note: See TracChangeset for help on using the changeset viewer.