Skip to content

Commit

Permalink
Show dialog when copy files did not found file
Browse files Browse the repository at this point in the history
Follow up from #3818
  • Loading branch information
Siedlerchr committed Mar 9, 2018
1 parent 988fb54 commit 56ff63b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/jabref/gui/copyfiles/CopyFilesAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ private void startServiceAndshowProgessDialog(Task<List<CopyFilesResultItemViewM
}

private void showDialog(List<CopyFilesResultItemViewModel> data) {
if (data.isEmpty()) {
dialogService.showInformationDialogAndWait(Localization.lang("Copy linked files to folder..."), Localization.lang("No linked files found for export."));
return;
}
CopyFilesDialogView dlg = new CopyFilesDialogView(databaseContext, new CopyFilesResultListDependency(data));
dlg.show();
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/l10n/JabRef_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2350,3 +2350,5 @@ Aux\ file=Aux file
Group\ containing\ entries\ cited\ in\ a\ given\ TeX\ file=Group containing entries cited in a given TeX file
Any\ file=Any\ file
No\ linked\ files\ found\ for\ export.=No linked files found for export.

0 comments on commit 56ff63b

Please sign in to comment.