Ignore:
Timestamp:
2024-02-29T07:48:30+01:00 (3 months ago)
Author:
GerdP
Message:

fix #23519: Don't automatically enlarge "Validation Results" panel

  • implement new preference validator.force.unfurl.window with default value true, if set to false the window is not unfurled
  • code cleanup to remove duplicate or obsolete code
File:
1 edited

Legend:

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

    r18960 r19000  
    2222import org.openstreetmap.josm.gui.MainApplication;
    2323import org.openstreetmap.josm.gui.dialogs.validator.ValidatorTreePanel;
    24 import org.openstreetmap.josm.gui.layer.ValidatorLayer;
    2524import org.openstreetmap.josm.gui.util.GuiHelper;
    2625import org.openstreetmap.josm.gui.widgets.HtmlPanel;
     
    106105        GuiHelper.destroyComponents(ed, false);
    107106        ed.dispose();
    108         if (rc != 1) {
    109             OsmValidator.initializeTests();
    110             OsmValidator.initializeErrorLayer();
    111             MainApplication.getMap().validatorDialog.unfurlDialog();
    112             MainApplication.getLayerManager().getLayersOfType(ValidatorLayer.class).forEach(ValidatorLayer::invalidate);
    113             return false;
    114         }
    115         return true;
     107        return rc == 1;
    116108    }
    117109}
Note: See TracChangeset for help on using the changeset viewer.