Skip to content

Commit

Permalink
ensure button enablement
Browse files Browse the repository at this point in the history
  • Loading branch information
moovida committed Jul 10, 2018
1 parent 229dc35 commit bce47f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ public void actionPerformed( ActionEvent event ) {

backGroundWork(monitor);

setEnabled(true);

postWork();
} catch (Exception e) {
onError(e);
} finally {
setEnabled(true);
// to ensure that progress dlg is closed in case of any exception
if (monitor != null && monitor.getCurrent() != monitor.getTotal())
monitor.setCurrent(null, monitor.getTotal());
Expand Down

0 comments on commit bce47f6

Please sign in to comment.