Skip to content

Commit

Permalink
Improve UX of batch update
Browse files Browse the repository at this point in the history
  • Loading branch information
GenieTim committed Feb 24, 2024
1 parent 9c428a1 commit 8e04da6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,9 @@ private void doApplyChange() {
// ask for confirmation
int dialogButton = JOptionPane.YES_NO_OPTION;
int dialogResult = JOptionPane.showConfirmDialog(this, nrOfChanges + " Specimen would be affected. Continue?", "Warning", dialogButton);
if (dialogResult == JOptionPane.NO_OPTION) {
if (!(dialogResult == JOptionPane.YES_OPTION)) {
log.debug("Will not do batch update. Confirmation denied.");
session.getTransaction().rollback();
return;
}
} catch (Exception e) {
Expand Down

0 comments on commit 8e04da6

Please sign in to comment.