From 5635eaa90a6d09a556f83b0525f7ccb2d6750b35 Mon Sep 17 00:00:00 2001 From: j-dimension Date: Tue, 21 Nov 2023 11:54:36 +0100 Subject: [PATCH] sonarqube fixes for issue #54 --- .../jlawyer/client/voip/EpostLetterValidationStep.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/j-lawyer-client/src/com/jdimension/jlawyer/client/voip/EpostLetterValidationStep.java b/j-lawyer-client/src/com/jdimension/jlawyer/client/voip/EpostLetterValidationStep.java index 8bb926417..30751b3ba 100644 --- a/j-lawyer-client/src/com/jdimension/jlawyer/client/voip/EpostLetterValidationStep.java +++ b/j-lawyer-client/src/com/jdimension/jlawyer/client/voip/EpostLetterValidationStep.java @@ -962,13 +962,7 @@ private void cmdValidateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-F try { SwingUtilities.invokeLater(() -> { - if (this.wizard != null) { - // for actual sending -// this.wizard.enableButtons(true, true, true, true); - - // for validation in templates -// this.wizard.enableButtons(false, false, false, true); - + if (this.wizard != null) { this.wizard.enableButtons(!this.wizard.isFirstStep(this), !this.wizard.isFinalStep(this), true, this.wizard.isFirstStep(this)); } });