Changeset 6331 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2013-10-27T02:38:21+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/upload/ValidateUploadHook.java
r6084 r6331 34 34 * 35 35 * @author frsantos 36 * @since 3669 36 37 */ 37 public class ValidateUploadHook implements UploadHook 38 { 39 /** Serializable ID */ 40 private static final long serialVersionUID = -2304521273582574603L; 41 38 public class ValidateUploadHook implements UploadHook { 39 42 40 /** 43 41 * Validate the modified data before uploading … … 62 60 test.endTest(); 63 61 if (Main.pref.getBoolean(ValidatorPreference.PREF_OTHER, false) && 64 Main.pref.getBoolean(ValidatorPreference.PREF_OTHER_UPLOAD, false)) 65 { 66 errors.addAll( test.getErrors() ); 67 } 68 else { 62 Main.pref.getBoolean(ValidatorPreference.PREF_OTHER_UPLOAD, false)) { 63 errors.addAll(test.getErrors()); 64 } else { 69 65 for (TestError e : test.getErrors()) { 70 66 if (e.getSeverity() != Severity.OTHER) { … … 75 71 } 76 72 tests = null; 73 Main.map.validatorDialog.tree.setErrors(errors); 77 74 if (errors == null || errors.isEmpty()) 78 75 return true; … … 141 138 ed.showDialog(); 142 139 143 if (ed.getValue() != 1) {140 if (ed.getValue() != 1) { 144 141 OsmValidator.initializeErrorLayer(); 145 142 Main.map.validatorDialog.unfurlDialog(); 146 Main.map.validatorDialog.tree.setErrors(errors);147 143 Main.main.getCurrentDataSet().fireSelectionChanged(); 148 144 return false;
Note:
See TracChangeset
for help on using the changeset viewer.