summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-07-15 11:24:15 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-07-15 11:24:15 +0200
commita3df55607151a9896d5ca07627b25e91422aec8a (patch)
treeb4ecbf9de2b5b8721fdccf917468e019566171d4 /pdf-over-gui/src/main/java/at/asit
parent529f78acda36291edd7d4a7f9c086b164cadf210 (diff)
downloadpdf-over-a3df55607151a9896d5ca07627b25e91422aec8a.tar.gz
pdf-over-a3df55607151a9896d5ca07627b25e91422aec8a.tar.bz2
pdf-over-a3df55607151a9896d5ca07627b25e91422aec8a.zip
reset to default BKU (instead of none) when cancelling
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/BKUSelectionState.java4
1 files changed, 1 insertions, 3 deletions
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) {