Skip to content

Commit

Permalink
Bug fix log entry update
Browse files Browse the repository at this point in the history
  • Loading branch information
georgweiss committed Dec 18, 2024
1 parent 368971f commit 28bcae3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,9 @@ public void initialize() {
titleProperty.set(logEntry.getTitle());

textArea.textProperty().bindBidirectional(descriptionProperty);
descriptionProperty.set(logEntry.getDescription() != null ? logEntry.getDescription() : "");
// When editing an existing entry, set the description to the source of the entry.
descriptionProperty.set(editMode.equals(EditMode.UPDATE_LOG_ENTRY) ? logEntry.getSource() :
(logEntry.getDescription() != null ? logEntry.getDescription() : ""));
descriptionProperty.addListener((observable, oldValue, newValue) -> isDirty = true);

Image tagIcon = ImageCache.getImage(LogEntryEditorController.class, "/icons/add_tag.png");
Expand Down

0 comments on commit 28bcae3

Please sign in to comment.