Skip to content

Commit

Permalink
Merge pull request #3115 from ControlSystemStudio/CSSTUDIO-2555
Browse files Browse the repository at this point in the history
CSSTUDIO-2555 Bugfix: edit the source of log entries (if available), not the description of log entries.
  • Loading branch information
shroffk authored Aug 20, 2024
2 parents c1c0dee + 71476c3 commit 80c7a3b
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,15 @@ public void initialize() {
titleProperty.set(logEntry.getTitle());

textArea.textProperty().bindBidirectional(descriptionProperty);
descriptionProperty.set(logEntry.getDescription() != null ? logEntry.getDescription() : "");
if (logEntry.getSource() != null) {
descriptionProperty.set(logEntry.getSource());
}
else if (logEntry.getDescription() != null) {
descriptionProperty.set(logEntry.getDescription());
}
else {
descriptionProperty.set("");
}
descriptionProperty.addListener((observable, oldValue, newValue) -> isDirty = true);

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

0 comments on commit 80c7a3b

Please sign in to comment.