Skip to content

Commit

Permalink
Merge pull request #6511 from JabRef/fixActionHelperWithOnlineLink
Browse files Browse the repository at this point in the history
Return true in action helper if file is online link
  • Loading branch information
Siedlerchr authored May 22, 2020
2 parents ef2a31c + 7748940 commit dffcf78
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/jabref/gui/actions/ActionHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ public static BooleanExpression isFilePresentForSelectedEntry(StateManager state
List<LinkedFile> files = entry.getFiles();

if ((entry.getFiles().size() > 0) && stateManager.getActiveDatabase().isPresent()) {
if (files.get(0).isOnlineLink()) {
return true;
}

Optional<Path> filename = FileHelper.find(
stateManager.getActiveDatabase().get(),
files.get(0).getLink(),
Expand Down

0 comments on commit dffcf78

Please sign in to comment.