From 0a2a68f1f4a70fc6a2fbaf2bf2d3a86874db4928 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Tue, 29 Oct 2024 22:38:09 +0100 Subject: [PATCH] Remove selection of entry after insertion --- src/main/java/org/jabref/gui/maintable/MainTable.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/main/java/org/jabref/gui/maintable/MainTable.java b/src/main/java/org/jabref/gui/maintable/MainTable.java index 4d66704856f..d7740257b9c 100644 --- a/src/main/java/org/jabref/gui/maintable/MainTable.java +++ b/src/main/java/org/jabref/gui/maintable/MainTable.java @@ -46,19 +46,16 @@ import org.jabref.gui.util.ControlHelper; import org.jabref.gui.util.CustomLocalDragboard; import org.jabref.gui.util.DragDrop; -import org.jabref.gui.util.UiTaskExecutor; import org.jabref.gui.util.ViewModelTableRowFactory; import org.jabref.logic.FilePreferences; import org.jabref.logic.citationstyle.CitationStyleOutputFormat; import org.jabref.logic.journals.JournalAbbreviationRepository; import org.jabref.logic.util.TaskExecutor; import org.jabref.model.database.BibDatabaseContext; -import org.jabref.model.database.event.EntriesAddedEvent; import org.jabref.model.entry.BibEntry; import org.jabref.model.entry.BibEntryTypesManager; import com.airhacks.afterburner.injection.Injector; -import com.google.common.eventbus.Subscribe; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -246,11 +243,6 @@ private void jumpToSearchKey(TableColumn sortedColumn }); } - @Subscribe - public void listen(EntriesAddedEvent event) { - UiTaskExecutor.runInJavaFXThread(() -> clearAndSelect(event.getFirstEntry())); - } - public void clearAndSelect(BibEntry bibEntry) { // check if entries merged from citation relations tab if (citationMergeMode) {