Changeset 17991 in josm for trunk


Ignore:
Timestamp:
2021-07-11T01:01:49+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #20989 - don't change active layer after layer removal if main worker is shut down (patch by Bjoeni, modified)

File:
1 edited

Legend:

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

    r16630 r17991  
    300300        }
    301301
    302         if (layer == activeLayer || layer == osmDataLayer) {
     302        if (!MainApplication.worker.isShutdown() && (layer == activeLayer || layer == osmDataLayer)) {
    303303            Layer nextActive = suggestNextActiveLayer(layer);
    304304            setActiveLayer(nextActive, true);
Note: See TracChangeset for help on using the changeset viewer.