Skip to content

Commit

Permalink
changelog edit
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Nguyen committed Oct 14, 2022
1 parent 361398e commit 22ee3d3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve
- We fixed an issue where an exception was not logged correctly. [koppor#627](https://github.com/JabRef/koppor/issues/627)
- We fixed an issue where hitting enter on the search field within the preferences dialog closed the dialog. [koppor#630](https://github.com/koppor/jabref/issues/630)
- We fixed a typo within a connection error message. [koppor#625](https://github.com/koppor/jabref/issues/625)
- We fixed an issue where JabRef forgets opened libraries [#9190](https://github.com/JabRef/jabref/issues/9190)

### Removed

Expand Down
8 changes: 8 additions & 0 deletions src/main/java/org/jabref/gui/JabRefFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,14 @@ private void tearDownJabRef(List<String> filenames) {
.getDatabasePath()
.orElse(null);

int i = 0;
while (focusedDatabase == null && i < tabbedPane.getTabs().size()) {
focusedDatabase = getLibraryTabAt(i).getBibDatabaseContext()
.getDatabasePath()
.orElse(null);
i++;
}

prefs.getGuiPreferences().setLastFilesOpened(filenames);
prefs.getGuiPreferences().setLastFocusedFile(focusedDatabase);
}
Expand Down

0 comments on commit 22ee3d3

Please sign in to comment.