Changeset 12211 in josm for trunk/src


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

Invalidate the validation layer after a valdiation finished.

File:
1 edited

Legend:

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

    r11553 r12211  
    1919import org.openstreetmap.josm.data.validation.util.AggregatePrimitivesVisitor;
    2020import org.openstreetmap.josm.gui.PleaseWaitRunnable;
     21import org.openstreetmap.josm.gui.layer.ValidatorLayer;
    2122import org.openstreetmap.josm.gui.preferences.validator.ValidatorPreference;
    2223import org.openstreetmap.josm.gui.util.GuiHelper;
     
    141142                Main.map.validatorDialog.tree.setErrors(errors);
    142143                Main.map.validatorDialog.unfurlDialog();
    143                 Main.getLayerManager().getEditDataSet().fireSelectionChanged();
     144                //FIXME: nicer way to find / invalidate the corresponding error layer
     145                Main.getLayerManager().getLayersOfType(ValidatorLayer.class).forEach(ValidatorLayer::invalidate);
    144146            });
    145147        }
Note: See TracChangeset for help on using the changeset viewer.