Ignore:
Timestamp:
2016-01-03T14:19:01+01:00 (4 years ago)
Author:
simon04
Message:

fix #12283 - Download notes in current view: fix NPE

File:
1 edited

Legend:

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

    r8663 r9276  
    4343    @Override
    4444    protected void updateEnabledState() {
    45         setEnabled(Main.map != null && Main.map.mapView != null && !Main.isOffline(OnlineResource.OSM_API));
     45        setEnabled(Main.isDisplayingMapView()
     46                && Main.map.mapView.getActiveLayer() != null
     47                && !Main.isOffline(OnlineResource.OSM_API));
    4648    }
    4749}
Note: See TracChangeset for help on using the changeset viewer.