diff --git a/src/main/java/org/jabref/gui/importer/ImportEntriesDialog.java b/src/main/java/org/jabref/gui/importer/ImportEntriesDialog.java index 1e8671150fb..26221ce81d2 100644 --- a/src/main/java/org/jabref/gui/importer/ImportEntriesDialog.java +++ b/src/main/java/org/jabref/gui/importer/ImportEntriesDialog.java @@ -119,6 +119,14 @@ private void initialize() { } }).executeWith(Globals.TASK_EXECUTOR); + /* + inserted the if-statement here, since a Platforn.runLater() call did not work. + also tried to move it to the end of the initialize method, but it did not select the entry. + */ + if (entriesListView.getItems().size() == 1) { + selectAllNewEntries(); + } + return container; }) .withOnMouseClickedEvent((entry, event) -> entriesListView.getCheckModel().toggleCheckState(entry))