Ignore:
Timestamp:
2017-12-18T00:14:48+01:00 (2 years ago)
Author:
Don-vip
Message:

see #15653, see #8509 - fix unit test causing mayhem

File:
1 edited

Legend:

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

    r13215 r13219  
    1717import org.openstreetmap.josm.gui.io.AsynchronousUploadPrimitivesTask;
    1818import org.openstreetmap.josm.gui.util.GuiHelper;
     19import org.openstreetmap.josm.tools.Logging;
    1920
    2021/**
     
    426427            activeLayerChangeListeners.clear();
    427428            layerAvailabilityListeners.clear();
    428         } else if (!GraphicsEnvironment.isHeadless()) {
    429             GuiHelper.runInEDT(() -> JOptionPane.showMessageDialog(MainApplication.parent,
    430                     tr("A background upload is already in progress. Cannot reset state until the upload is finished.")));
     429        } else {
     430            String msg = tr("A background upload is already in progress. Cannot reset state until the upload is finished.");
     431            Logging.warn(msg);
     432            if (!GraphicsEnvironment.isHeadless()) {
     433                GuiHelper.runInEDT(() -> JOptionPane.showMessageDialog(MainApplication.parent, msg));
     434            }
    431435        }
    432436    }
Note: See TracChangeset for help on using the changeset viewer.