From a3df55607151a9896d5ca07627b25e91422aec8a Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Fri, 15 Jul 2022 11:24:15 +0200 Subject: reset to default BKU (instead of none) when cancelling --- .../java/at/asit/pdfover/gui/workflow/states/BKUSelectionState.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'pdf-over-gui/src/main/java/at/asit') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/BKUSelectionState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/BKUSelectionState.java index 5023781a..128ac979 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/BKUSelectionState.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/BKUSelectionState.java @@ -73,9 +73,7 @@ public class BKUSelectionState extends State { (previousState instanceof PositioningState) || (previousState instanceof BKUSelectionState) )) { - status.bku = BKUs.NONE; - } else if(!(status.getPreviousState() instanceof BKUSelectionState)) { - getStateMachine().configProvider.getDefaultBKU(); + status.bku = getStateMachine().configProvider.getDefaultBKU(); } if(status.bku == BKUs.NONE) { -- cgit v1.2.3