Changeset 18009 in josm for trunk/src/org
- Timestamp:
- 2021-07-13T00:27:59+02:00 (3 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/NoteData.java
r17836 r18009 224 224 Logging.debug("closing note {0} with comment: {1}", note.getId(), text); 225 225 } 226 NoteComment comment = new NoteComment(Instant.now(), getCurrentUser(), text, NoteComment.Action.CLOSED, true);227 note.addComment( comment);226 Instant now = Instant.now(); 227 note.addComment(new NoteComment(now, getCurrentUser(), text, NoteComment.Action.CLOSED, true)); 228 228 note.setState(State.CLOSED); 229 note.setClosedAt( Instant.now());229 note.setClosedAt(now); 230 230 dataUpdated(); 231 231 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/NotesDialog.java
r17855 r18009 404 404 } 405 405 Note note = displayList.getSelectedValue(); 406 int selectedIndex = displayList.getSelectedIndex(); 407 noteData.closeNote(note, dialog.getInputText()); 408 noteData.setSelectedNote(model.getElementAt(selectedIndex)); 406 if (note != null) { 407 int selectedIndex = displayList.getSelectedIndex(); 408 noteData.closeNote(note, dialog.getInputText()); 409 noteData.setSelectedNote(model.getElementAt(selectedIndex)); 410 } 409 411 } 410 412 }
Note:
See TracChangeset
for help on using the changeset viewer.