Changeset 18454 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2022-05-19T20:09:13+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/NotesDialog.java
r18208 r18454 408 408 int selectedIndex = displayList.getSelectedIndex(); 409 409 noteData.closeNote(note, dialog.getInputText()); 410 noteData.setSelectedNote(model.getElementAt(selectedIndex)); 410 // This is required since filtering may cause the model to not have any visible elements 411 if (model.getSize() > 0) { 412 noteData.setSelectedNote(model.getElementAt(selectedIndex)); 413 } else { 414 noteData.setSelectedNote(null); 415 } 411 416 } 412 417 }
Note:
See TracChangeset
for help on using the changeset viewer.