Skip to content

Commit

Permalink
Fix #5939 by creating a mutable list in OpenDatabaseAction
Browse files Browse the repository at this point in the history
  • Loading branch information
Ka0o0 committed Feb 12, 2020
1 parent 567dc68 commit d0f5263
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `#
- We fixed an issue where entries containing Unicode charaters were not parsed correctly [#5899](https://github.com/JabRef/jabref/issues/5899)
- 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)
- 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)
- We fixed an issue where opening a library from the recent libraries menu was not possible [#5939](https://github.com/JabRef/jabref/issues/5939)


### Removed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.nio.file.Files;
import java.nio.file.Path;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
Expand Down Expand Up @@ -102,7 +103,7 @@ private Path getInitialDirectory() {
* @param file the file, may be null or not existing
*/
public void openFile(Path file, boolean raisePanel) {
openFiles(Collections.singletonList(file), raisePanel);
openFiles(new ArrayList<>(Collections.singletonList(file)), raisePanel);
}

/**
Expand Down

0 comments on commit d0f5263

Please sign in to comment.