summaryrefslogtreecommitdiff
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
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
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/BKUSelectionState.java4
-rw-r--r--pdf-over-signator/pom.xml14
2 files changed, 8 insertions, 10 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) {
diff --git a/pdf-over-signator/pom.xml b/pdf-over-signator/pom.xml
index 7a4e1edd..e1b94137 100644
--- a/pdf-over-signator/pom.xml
+++ b/pdf-over-signator/pom.xml
@@ -26,13 +26,13 @@
<artifactId>metadata-extractor</artifactId>
</dependency>
<dependency>
- <groupId>javax.activation</groupId>
- <artifactId>activation</artifactId>
+ <groupId>javax.activation</groupId>
+ <artifactId>activation</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.glassfish.jaxb</groupId>
+ <artifactId>jaxb-runtime</artifactId>
+ <version>2.4.0-b180830.0438</version>
</dependency>
- <dependency>
- <groupId>org.glassfish.jaxb</groupId>
- <artifactId>jaxb-runtime</artifactId>
- <version>2.4.0-b180830.0438</version>
- </dependency>
</dependencies>
</project>