Changeset 6436 in josm for trunk/src


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

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

Location:
trunk/src/org/openstreetmap/josm
Files:
3 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())
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java

    r6361 r6436  
    374374                hasFixes = hasFixes || error.isFixable();
    375375                if (addSelected) {
    376                     //                    sel.addAll(error.getPrimitives()); // was selecting already deleted primitives! see #6640
    377376                    sel.addAll(error.getSelectablePrimitives());
    378377                }
  • trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java

    r6333 r6436  
    9999    private int highlightUpdateCount;
    100100
    101     public List<TestError> validationErrors = new ArrayList<TestError>();
     101    /**
     102     * List of validation errors in this layer.
     103     * @since 3669
     104     */
     105    public final List<TestError> validationErrors = new ArrayList<TestError>();
    102106
    103107    protected void setRequiresSaveToFile(boolean newValue) {
Note: See TracChangeset for help on using the changeset viewer.