Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed the bug 960 #16

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[master]
- Fixed bug 960 "FileNotFoundException in Journal abbreviations window" (by edukempf)
- Change default behaviour to be more non-invasive: timestamps and owners are NOT set by default per entry.
- "Open Folder" works again
- newline separator can now be configured globally
15 changes: 14 additions & 1 deletion src/main/java/net/sf/jabref/journals/ManageJournalsPanel.java
Original file line number Diff line number Diff line change
@@ -345,13 +345,26 @@ public void storeSettings() {
if (newFile.isSelected()) {
if (newNameTf.getText().length() > 0) {
f = new File(newNameTf.getText());
if(!f.exists())
if(new File(f.getPath().substring(0, f.getPath().lastIndexOf("/"))).exists()
|| new File(f.getPath().substring(0, f.getPath().lastIndexOf("\\"))).exists()){
try {
f.createNewFile();
} catch (IOException e) {
JOptionPane.showMessageDialog(this, "Could not create the file in the path specified");
e.printStackTrace();
}
}else{
JOptionPane.showMessageDialog(this, "Informed folder does not exist");
}

}// else {
// return; // Nothing to do.
//}
} else
f = new File(personalFile.getText());

if (f != null) {
if (f.exists()) {
FileWriter fw = null;
try {
fw = new FileWriter(f, false);
3 changes: 2 additions & 1 deletion src/main/resources/help/About.html
Original file line number Diff line number Diff line change
@@ -88,7 +88,8 @@ <h2>Contributions from:</h2>
David Weitzman,
Seb Wills,
John Zedlewski,
Waluyo Adi Siswanto</p>
Waluyo Adi Siswanto,
Eduardo Kempf</p>

<h2>Thanks to:</h2>