Skip to content

Commit

Permalink
Resolves #2309 JabRef freezes when importing unlinked PDF files into …
Browse files Browse the repository at this point in the history
…Database
  • Loading branch information
stefan-kolb committed Dec 13, 2016
1 parent 074a395 commit 67c26b5
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/main/java/net/sf/jabref/gui/FindUnlinkedFilesDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -473,10 +473,10 @@ public void stateChanged(ChangeEvent e) {
} else {
message = Localization.lang("%0 files found", Integer.toString(counter));
}
SwingUtilities.invokeLater(() -> progressBarSearching.setString(message));
progressBarSearching.setString(message);
}
});
SwingUtilities.invokeLater(() -> searchFinishedHandler(rootNode));
searchFinishedHandler(rootNode);
});

}
Expand Down Expand Up @@ -533,14 +533,12 @@ entryType, checkBoxWhyIsThereNoGetSelectedStupidSwing, new ChangeListener() {
@Override
public void stateChanged(ChangeEvent e) {
counter++;
SwingUtilities.invokeLater(() -> {
progressBarImporting.setValue(counter);
progressBarImporting.setString(Localization.lang("%0 of %1", Integer.toString(counter),
progressBarImporting.setValue(counter);
progressBarImporting.setString(Localization.lang("%0 of %1", Integer.toString(counter),
Integer.toString(progressBarImporting.getMaximum())));
});
}
}, errors);
SwingUtilities.invokeLater(() -> importFinishedHandler(errors));
importFinishedHandler(errors);
});
}

Expand Down

0 comments on commit 67c26b5

Please sign in to comment.