Skip to content

Commit

Permalink
display failure dialog if any
Browse files Browse the repository at this point in the history
  • Loading branch information
jburel committed Aug 13, 2023
1 parent c9b7027 commit ac5c07e
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,12 @@ private void updateGUI() {

@Override
void showFailures() {
JFrame f = ImporterAgent.getRegistry().getTaskBar().getFrame();
FailedImportDialog d = new FailedImportDialog(f, getMarkedFiles());
UIUtilities.centerAndShow(d);
Collection<FileImportComponentI> components = getMarkedFiles();
if (components != nulll && components.size() > 0) {
JFrame f = ImporterAgent.getRegistry().getTaskBar().getFrame();
FailedImportDialog d = new FailedImportDialog(f, components);
UIUtilities.centerAndShow(d);
}
}

@Override
Expand Down

0 comments on commit ac5c07e

Please sign in to comment.