Changeset 12212 in josm for trunk/src/org


Ignore:
Timestamp:
2017-05-18T23:16:42+02:00 (8 years ago)
Author:
michael2402
Message:

ValidateUploadHook: Invalidate the error layer instead of relying on a selection change to trigger a map update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/upload/ValidateUploadHook.java

    r10880 r12212  
    2424import org.openstreetmap.josm.gui.dialogs.validator.ValidatorTreePanel;
    2525import org.openstreetmap.josm.gui.layer.OsmDataLayer;
     26import org.openstreetmap.josm.gui.layer.ValidatorLayer;
    2627import org.openstreetmap.josm.gui.preferences.validator.ValidatorPreference;
    2728import org.openstreetmap.josm.gui.widgets.HtmlPanel;
     
    149150            OsmValidator.initializeErrorLayer();
    150151            Main.map.validatorDialog.unfurlDialog();
    151             Main.getLayerManager().getEditDataSet().fireSelectionChanged();
     152            Main.getLayerManager().getLayersOfType(ValidatorLayer.class).forEach(ValidatorLayer::invalidate);
    152153            return false;
    153154        }
Note: See TracChangeset for help on using the changeset viewer.