Skip to content

Commit

Permalink
Select correct entry in search using "New Article" (JabRef#8717)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisTestUser authored and Jonathan-Oliveira committed May 7, 2022
1 parent 84b763a commit 8a8f82a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve
- We fixed an issue where not all found unlinked local files were imported correctly due to some race condition. [#8444](https://github.com/JabRef/jabref/issues/8444)
- We fixed an issue where Merge entries dialog exceeds screen boundaries.
- We fixed an issue where no citationkey was generated on import, pasting a doi or an entry on the main table [8406](https://github.com/JabRef/jabref/issues/8406), [koppor#553](https://github.com/koppor/jabref/issues/553)
- We fixed an issue where accent search does not perform consistently. [#6815](https://github.com/JabRef/jabref/issues/6815)
- We fixed an issue where the incorrect entry was selected when "New Article" is pressed while search filters are active. [#8674](https://github.com/JabRef/jabref/issues/8674)

### Removed

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/jabref/gui/maintable/MainTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ public void listen(EntriesAddedEvent event) {
}

public void clearAndSelect(BibEntry bibEntry) {
getSelectionModel().clearSelection();
findEntry(bibEntry).ifPresent(entry -> {
getSelectionModel().clearSelection();
getSelectionModel().select(entry);
scrollTo(entry);
});
Expand Down

0 comments on commit 8a8f82a

Please sign in to comment.