From af9e34955ead12d414ddb553c26a2c48ba5fead3 Mon Sep 17 00:00:00 2001 From: HoussemNasri Date: Wed, 27 Dec 2023 01:15:03 +0100 Subject: [PATCH 1/2] Fix preview panel showing the wrong entry --- src/main/java/org/jabref/gui/preview/PreviewPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jabref/gui/preview/PreviewPanel.java b/src/main/java/org/jabref/gui/preview/PreviewPanel.java index a2416d43098..3a332dba0c7 100644 --- a/src/main/java/org/jabref/gui/preview/PreviewPanel.java +++ b/src/main/java/org/jabref/gui/preview/PreviewPanel.java @@ -156,8 +156,8 @@ private ContextMenu createPopupMenu() { public void setEntry(BibEntry entry) { this.entry = entry; - previewView.setLayout(previewPreferences.getSelectedPreviewLayout()); previewView.setEntry(entry); + previewView.setLayout(previewPreferences.getSelectedPreviewLayout()); } public void print() { From fb4caa4dd335a0fa4e0b6397a852c8b9af02f088 Mon Sep 17 00:00:00 2001 From: HoussemNasri Date: Wed, 27 Dec 2023 01:16:28 +0100 Subject: [PATCH 2/2] Add changelog entry --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8cbe21267e5..6969a5ab2de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,8 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv ### Fixed +- We fixed an issue where the preview panel showing the wrong entry (an entry that is not selected in the entry table). [#9172](https://github.com/JabRef/jabref/issues/9172) + ### Removed ## [5.12] – 2023-12-24