Changeset 13215 in josm


Ignore:
Timestamp:
2017-12-17T22:10:07+01:00 (5 weeks ago)
Author:
Don-vip
Message:

see #15653, see #8509 - add headless check for unit tests

File:
1 edited

Legend:

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

    r13213 r13215  
    44import static org.openstreetmap.josm.tools.I18n.tr;
    55
     6import java.awt.GraphicsEnvironment;
    67import java.util.ArrayList;
    78import java.util.Collection;
     
    425426            activeLayerChangeListeners.clear();
    426427            layerAvailabilityListeners.clear();
    427         } else {
     428        } else if (!GraphicsEnvironment.isHeadless()) {
    428429            GuiHelper.runInEDT(() -> JOptionPane.showMessageDialog(MainApplication.parent,
    429430                    tr("A background upload is already in progress. Cannot reset state until the upload is finished.")));
Note: See TracChangeset for help on using the changeset viewer.