Skip to content

Commit

Permalink
FileAnnotationTab now only shows the FileName, not the full path. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusDietz authored and Siedlerchr committed Mar 25, 2017
1 parent 9e63870 commit 9205a02
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public Map<String, List<FileAnnotation>> importAnnotationsFromFiles(BibDatabaseC
for (ParsedFileField parsedFileField : this.getFilteredFileList()) {
Optional<File> expandedFileName = FileUtil.expandFilename(databaseContext, parsedFileField.getLink(),
JabRefPreferences.getInstance().getFileDirectoryPreferences());
expandedFileName.ifPresent(file -> annotations.put(file.toString(), importer.importAnnotations(file.toPath())));
expandedFileName.ifPresent(file -> annotations.put(file.getName(), importer.importAnnotations(file.toPath())));
}
return annotations;
}
Expand Down

0 comments on commit 9205a02

Please sign in to comment.