Skip to content

Commit

Permalink
invoke preferences.addSed later in the EDT
Browse files Browse the repository at this point in the history
  • Loading branch information
olaurino committed Dec 20, 2016
1 parent bad97bc commit f37bde3
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -589,8 +589,13 @@ protected ExtSed doInBackground() throws Exception {
@Override
protected void done() {
try {
ExtSed sed = get();
preferences.addSed(sed);
final ExtSed sed = get();
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
preferences.addSed(sed);
}
});
JOptionPane.showMessageDialog(MetadataBrowserMainView.this, "Adding new SED (" + sed.getId() + ") to workspace.");
} catch (InterruptedException ex) {
// noop
Expand Down

0 comments on commit f37bde3

Please sign in to comment.