Skip to content

Commit d0f5263

Browse files
committed
Fix #5939 by creating a mutable list in OpenDatabaseAction
1 parent 567dc68 commit d0f5263

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `#
3535
- We fixed an issue where entries containing Unicode charaters were not parsed correctly [#5899](https://github.com/JabRef/jabref/issues/5899)
3636
- We fixed an issue where an entry containing an external filename with curly braces could not be saved. Curly braces are now longer allowed in filenames. [#5899](https://github.com/JabRef/jabref/issues/5899)
3737
- We fixed an issue where changing the type of an entry did not update the main table [#5906](https://github.com/JabRef/jabref/issues/5906)
38+
- We fixed an issue where opening a library from the recent libraries menu was not possible [#5939](https://github.com/JabRef/jabref/issues/5939)
3839

3940

4041
### Removed

src/main/java/org/jabref/gui/importer/actions/OpenDatabaseAction.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import java.nio.file.Files;
44
import java.nio.file.Path;
55
import java.sql.SQLException;
6+
import java.util.ArrayList;
67
import java.util.Arrays;
78
import java.util.Collections;
89
import java.util.Iterator;
@@ -102,7 +103,7 @@ private Path getInitialDirectory() {
102103
* @param file the file, may be null or not existing
103104
*/
104105
public void openFile(Path file, boolean raisePanel) {
105-
openFiles(Collections.singletonList(file), raisePanel);
106+
openFiles(new ArrayList<>(Collections.singletonList(file)), raisePanel);
106107
}
107108

108109
/**

0 commit comments

Comments
 (0)