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 authored and koppor committed Jan 20, 2017
1 parent f1d97c6 commit d2b555d
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/main/java/net/sf/jabref/gui/FindUnlinkedFilesDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -472,10 +472,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 @@ -532,14 +532,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),
Integer.toString(progressBarImporting.getMaximum())));
});
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 d2b555d

Please sign in to comment.