Skip to content

Commit

Permalink
Fix #671 Use last import working directory instead of global working …
Browse files Browse the repository at this point in the history
…directory
  • Loading branch information
stefan-kolb committed Jan 25, 2016
1 parent 7485026 commit 7139ec1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/main/java/net/sf/jabref/JabRefPreferences.java
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ private JabRefPreferences() {
defaults.put(NUMBER_COL_WIDTH, GUIGlobals.NUMBER_COL_LENGTH);
defaults.put(WORKING_DIRECTORY, USER_HOME);
defaults.put(EXPORT_WORKING_DIRECTORY, USER_HOME);
// Remembers working directory of last import
defaults.put(IMPORT_WORKING_DIRECTORY, USER_HOME);
defaults.put(FILE_WORKING_DIRECTORY, USER_HOME);
defaults.put(AUTO_OPEN_FORM, Boolean.TRUE);
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/net/sf/jabref/importer/ImportFormats.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ public ImportAction(JabRefFrame frame, boolean openInNew) {

@Override
public void actionPerformed(ActionEvent e) {
JFileChooser fc = ImportFormats.createImportFileChooser
(Globals.prefs.get(JabRefPreferences.WORKING_DIRECTORY));
JFileChooser fc = ImportFormats.createImportFileChooser(Globals.prefs.get(JabRefPreferences.IMPORT_WORKING_DIRECTORY));
fc.showOpenDialog(frame);
File file = fc.getSelectedFile();
if (file == null) {
Expand Down

0 comments on commit 7139ec1

Please sign in to comment.