Skip to content

Commit

Permalink
Merge pull request #392 from jburel/issue_364
Browse files Browse the repository at this point in the history
display failure dialog if any
  • Loading branch information
jburel authored Aug 16, 2023
2 parents fc32ab7 + 3ffbb68 commit 7e07e35
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 != null && 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 7e07e35

Please sign in to comment.