Skip to content

Commit

Permalink
Fix for issue koppor#551
Browse files Browse the repository at this point in the history
  • Loading branch information
u7780442 committed Oct 24, 2024
1 parent ba94a0b commit 4589b17
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/main/java/org/jabref/gui/externalfiles/ImportHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,7 @@ public void importEntriesWithDuplicateCheck(BibDatabaseContext database, List<Bi
*/
public List<BibEntry> getEntriesToImport(List<Path> files) {
List<BibEntry> entriesToImport = new ArrayList<>();

for (Path file : files) {

if (FileUtil.isPDFFile(file)) {
var pdfImporterResult = contentImporter.importPDFContent(file);
List<BibEntry> pdfEntriesInFile = pdfImporterResult.getDatabase().getEntries();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@

import org.jabref.gui.DialogService;
import org.jabref.gui.StateManager;
import org.jabref.gui.duplicationFinder.DuplicateResolverDialog;
import org.jabref.gui.preferences.GuiPreferences;
import org.jabref.gui.util.DirectoryDialogConfiguration;
import org.jabref.gui.util.FileDialogConfiguration;
Expand Down Expand Up @@ -219,7 +218,6 @@ public void accept(List<ImportFilesResultItemViewModel> importFilesResultItemVie
*
*/
private Path getFilePathFromEntry(BibEntry entry) {

Optional<String> fileField = entry.getField(StandardField.FILE);
if (fileField.isPresent()) {
String fileFieldValue = fileField.get();
Expand Down

0 comments on commit 4589b17

Please sign in to comment.