Ticket #23440: 23340.patch
File 23340.patch, 1.1 KB (added by , 19 months ago) |
---|
-
src/org/openstreetmap/josm/data/validation/ValidationTask.java
100 100 this.errors.removeIf(error -> error.getSeverity().getLevel() >= Severity.OTHER.getLevel()); 101 101 } 102 102 103 if (!GraphicsEnvironment.isHeadless() && MainApplication.getMap() != null && (!beforeUpload || !errors.isEmpty())) {103 if (!GraphicsEnvironment.isHeadless() && MainApplication.getMap() != null) { 104 104 // update GUI on Swing EDT 105 105 GuiHelper.runInEDT(() -> { 106 106 MapFrame map = MainApplication.getMap(); 107 if (!map.validatorDialog.isShowing() && errors.isEmpty() && beforeUpload) 108 return; 107 109 map.validatorDialog.unfurlDialog(); 108 110 map.validatorDialog.tree.setErrors(errors); 109 111 //FIXME: nicer way to find / invalidate the corresponding error layer