Ignore:
Timestamp:
2016-08-23T22:07:06+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #13429 - Clean validator tree and use listener to find changes (patch by michael2402) - gsoc-core

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/OsmValidator.java

    r10765 r10880  
    183183    private static void loadIgnoredErrors() {
    184184        ignoredErrors.clear();
    185         if (Main.pref.getBoolean(ValidatorPreference.PREF_USE_IGNORE, true)) {
     185        if (ValidatorPreference.PREF_USE_IGNORE.get()) {
    186186            Path path = Paths.get(getValidatorDir()).resolve("ignorederrors");
    187187            if (Files.exists(path)) {
     
    217217
    218218    public static synchronized void initializeErrorLayer() {
    219         if (!Main.pref.getBoolean(ValidatorPreference.PREF_LAYER, true))
     219        if (!ValidatorPreference.PREF_LAYER.get())
    220220            return;
    221221        if (errorLayer == null) {
Note: See TracChangeset for help on using the changeset viewer.