- Timestamp:
- 2021-01-04T12:12:03+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/validator/ValidatorTreePanel.java
r16079 r17437 168 168 if (resetScheduled) 169 169 return; 170 buildTreeInternal(expandAgain); 171 invalidationListeners.fireEvent(Runnable::run); 172 } 173 174 private void buildTreeInternal(boolean expandAgain) { 170 175 final DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode(); 171 176 172 if (errors == null || errors.isEmpty()) { 173 GuiHelper.runInEDTAndWait(() -> valTreeModel.setRoot(rootNode)); 174 return; 175 } 177 if (errors == null) 178 errors = new ArrayList<>(); 176 179 177 180 // Remember first selected tree row … … 199 202 200 203 Predicate<TestError> filterToUse = e -> !e.isIgnored(); 201 if (! ValidatorPrefHelper.PREF_OTHER.get()) {204 if (!Boolean.TRUE.equals(ValidatorPrefHelper.PREF_OTHER.get())) { 202 205 filterToUse = filterToUse.and(e -> e.getSeverity() != Severity.OTHER); 203 206 } … … 326 329 scrollRowToVisible(selRow); 327 330 } 328 329 invalidationListeners.fireEvent(Runnable::run);330 331 } 331 332
Note:
See TracChangeset
for help on using the changeset viewer.