Skip to content

Commit

Permalink
Import/Export preferences dialog default directory set to working dir…
Browse files Browse the repository at this point in the history
…ectory (#1901)

* Set preferences dialog xml dir to working dir
* CHANGELOG.md
  • Loading branch information
Jürgen Lange authored and Siedlerchr committed Aug 31, 2016
1 parent b57b60e commit 4913665
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `#
- Added integrity check for fields with BibTeX keys, e.g., `crossref` and `related`, to check that the key exists
- [#1496](https://github.com/JabRef/jabref/issues/1496) Keep track of which entry a downloaded file belongs to
- Made it possible to download multiple entries in one action
- [#1813](https://github.com/JabRef/jabref/issues/1813) Import/Export preferences dialog default directory set to working directory

### Fixed
- Fixed NullPointerException when opening search result window for an untitled database
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public PreferencesDialog(JabRefFrame parent) {
// Import and export actions:
exportPreferences.setToolTipText(Localization.lang("Export preferences to file"));
exportPreferences.addActionListener(e -> {
FileDialog dialog = new FileDialog(frame, System.getProperty("user.home")).withExtension(FileExtensions.XML);
FileDialog dialog = new FileDialog(frame).withExtension(FileExtensions.XML);
dialog.setDefaultExtension(FileExtensions.XML);
Optional<Path> path = dialog.saveNewFile();

Expand All @@ -170,7 +170,7 @@ public PreferencesDialog(JabRefFrame parent) {

importPreferences.setToolTipText(Localization.lang("Import preferences from file"));
importPreferences.addActionListener(e -> {
FileDialog dialog = new FileDialog(frame, System.getProperty("user.home")).withExtension(FileExtensions.XML);
FileDialog dialog = new FileDialog(frame).withExtension(FileExtensions.XML);
dialog.setDefaultExtension(FileExtensions.XML);
Optional<Path> fileName = dialog.showDialogAndGetSelectedFile();

Expand Down

0 comments on commit 4913665

Please sign in to comment.