Ticket #7450: josm-nagging.patch

File josm-nagging.patch, 981 bytes (added by Zverikk, 9 years ago)
  • src/org/openstreetmap/josm/actions/AddImageryLayerAction.java

     
    1010import org.openstreetmap.josm.Main;
    1111import org.openstreetmap.josm.data.imagery.ImageryInfo;
    1212import org.openstreetmap.josm.data.imagery.ImageryInfo.ImageryType;
     13import org.openstreetmap.josm.gui.actionsupport.AlignImageryPanel;
    1314import org.openstreetmap.josm.gui.layer.ImageryLayer;
    1415import org.openstreetmap.josm.tools.ImageProvider;
    1516
     
    4344        if (!isEnabled()) return;
    4445        try {
    4546            Main.main.addLayer(ImageryLayer.create(info));
     47            AlignImageryPanel.addNagPanel();
    4648        } catch (IllegalArgumentException ex) {
    4749            if (ex.getMessage() == null || ex.getMessage().isEmpty()) {
    4850                throw ex;