Changeset 6497 in josm


Ignore:
Timestamp:
2013-12-18T23:21:03+01:00 (11 years ago)
Author:
Don-vip
Message:

fix #9448 - do not attempt to start grabber thread for blank WMS layer

File:
1 edited

Legend:

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

    r6460 r6497  
    969969    @Override
    970970    public void preferenceChanged(PreferenceChangeEvent event) {
    971         if (event.getKey().equals(PROP_SIMULTANEOUS_CONNECTIONS.getKey())) {
     971        if (event.getKey().equals(PROP_SIMULTANEOUS_CONNECTIONS.getKey()) && info.getUrl() != null) {
    972972            cancelGrabberThreads(true);
    973973            startGrabberThreads();
Note: See TracChangeset for help on using the changeset viewer.