Skip to content

Commit

Permalink
Merge pull request #3214 from ControlSystemStudio/CSSTUDIO-2882
Browse files Browse the repository at this point in the history
Bug fix log entry update
  • Loading branch information
shroffk authored Dec 18, 2024
2 parents 368971f + 28bcae3 commit dc4ef64
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 dc4ef64

Please sign in to comment.