Skip to content

Commit d86270c

Browse files
authored
Show dialog when copy files did not found file (#3826)
Follow up from #3818
1 parent 988fb54 commit d86270c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/main/java/org/jabref/gui/copyfiles/CopyFilesAction.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ private void startServiceAndshowProgessDialog(Task<List<CopyFilesResultItemViewM
6363
}
6464

6565
private void showDialog(List<CopyFilesResultItemViewModel> data) {
66+
if (data.isEmpty()) {
67+
dialogService.showInformationDialogAndWait(Localization.lang("Copy linked files to folder..."), Localization.lang("No linked files found for export."));
68+
return;
69+
}
6670
CopyFilesDialogView dlg = new CopyFilesDialogView(databaseContext, new CopyFilesResultListDependency(data));
6771
dlg.show();
6872
}

src/main/resources/l10n/JabRef_en.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2350,3 +2350,5 @@ Aux\ file=Aux file
23502350
Group\ containing\ entries\ cited\ in\ a\ given\ TeX\ file=Group containing entries cited in a given TeX file
23512351
23522352
Any\ file=Any\ file
2353+
2354+
No\ linked\ files\ found\ for\ export.=No linked files found for export.

0 commit comments

Comments
 (0)