summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-09-01 10:00:17 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-09-01 10:00:17 +0200
commit65fbf0f1bd2174c64d6adc06d0c5d76739fcd98c (patch)
tree04c238a6a7b99250a38115ba44f6e74927a0e023 /pdf-over-gui/src/main/java/at
parent54103661e771be012eb0f872827ec37158286f69 (diff)
downloadpdf-over-65fbf0f1bd2174c64d6adc06d0c5d76739fcd98c.tar.gz
pdf-over-65fbf0f1bd2174c64d6adc06d0c5d76739fcd98c.tar.bz2
pdf-over-65fbf0f1bd2174c64d6adc06d0c5d76739fcd98c.zip
don't allow remember to be toggled on (only off) via the cancel button, cf. #105
Diffstat (limited to 'pdf-over-gui/src/main/java/at')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java
index bb1be5d0..456b3d64 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java
@@ -261,7 +261,8 @@ public class MobileBKUState extends State {
}
}
- getStateMachine().configProvider.setRememberMobilePasswordPersistent(ui.isRememberPassword());
+ if (!(ui.userCancel && ui.isRememberPassword())) /* don't allow "remember" to be enabled via cancel button */
+ getStateMachine().configProvider.setRememberMobilePasswordPersistent(ui.isRememberPassword());
if (ui.userCancel) {
ui.userCancel = false;