From c4876f8e95fb9650814cef73223c8d0cdf8b21d0 Mon Sep 17 00:00:00 2001 From: Siedlerchr Date: Mon, 30 Sep 2024 19:59:10 +0200 Subject: [PATCH] Fix not on FX thread exception for DOI(arxiv lookup Fixes #11850 --- CHANGELOG.md | 1 + .../org/jabref/gui/importer/fetcher/LookupIdentifierAction.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f20a1ec6a4b..e1da7f61956 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -81,6 +81,7 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv - We fixed an issue where HTML instead of the fulltext pdf was downloaded when importing arXiv entries. [#4913](https://github.com/JabRef/jabref/issues/4913) - We fixed an issue where the keywords and crossref fields were not properly focused. [#11177](https://github.com/JabRef/jabref/issues/11177) - We fixed an issue where recently opened files were not displayed in the main menu properly. [#9042](https://github.com/JabRef/jabref/issues/9042) +- We fixed an issue where the DOI lookup would show an error when a DOI was found for an entry. [#11850](https://github.com/JabRef/jabref/issues/11850) ### Removed diff --git a/src/main/java/org/jabref/gui/importer/fetcher/LookupIdentifierAction.java b/src/main/java/org/jabref/gui/importer/fetcher/LookupIdentifierAction.java index f51c2a2137d..953020e6c61 100644 --- a/src/main/java/org/jabref/gui/importer/fetcher/LookupIdentifierAction.java +++ b/src/main/java/org/jabref/gui/importer/fetcher/LookupIdentifierAction.java @@ -97,7 +97,7 @@ private String lookupIdentifiers(List bibEntries) { } namedCompound.end(); if (foundCount > 0) { - undoManager.addEdit(namedCompound); + UiTaskExecutor.runInJavaFXThread(() -> undoManager.addEdit(namedCompound)); } return Localization.lang("Determined %0 for %1 entries", fetcher.getIdentifierName(), Integer.toString(foundCount)); }