Ignore:
Timestamp:
2013-12-04T21:40:03+01:00 (6 years ago)
Author:
Don-vip
Message:

fix #9362 - Validator dialog not filled with warning messages after cancelling the upload popup window

File:
1 edited

Legend:

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

    r6331 r6436  
    2323import org.openstreetmap.josm.gui.ExtendedDialog;
    2424import org.openstreetmap.josm.gui.dialogs.validator.ValidatorTreePanel;
     25import org.openstreetmap.josm.gui.layer.OsmDataLayer;
    2526import org.openstreetmap.josm.gui.preferences.ValidatorPreference;
    2627import org.openstreetmap.josm.gui.widgets.HtmlPanel;
     
    7172        }
    7273        tests = null;
     74        OsmDataLayer editLayer = Main.main.getEditLayer();
     75        editLayer.validationErrors.clear();
     76        editLayer.validationErrors.addAll(errors);
    7377        Main.map.validatorDialog.tree.setErrors(errors);
    7478        if (errors == null || errors.isEmpty())
Note: See TracChangeset for help on using the changeset viewer.