Skip to content

Commit

Permalink
Remove selection of entry after insertion
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Oct 29, 2024
1 parent 108a6d1 commit 0a2a68f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/main/java/org/jabref/gui/maintable/MainTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -246,11 +243,6 @@ private void jumpToSearchKey(TableColumn<BibEntryTableViewModel, ?> 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) {
Expand Down

0 comments on commit 0a2a68f

Please sign in to comment.