From d5cf6c3d34308cee7862a0b3f2c01a3fc7338dc9 Mon Sep 17 00:00:00 2001 From: Tobias Kellner Date: Thu, 27 Nov 2014 21:02:45 +0100 Subject: Disable state jumping during signing process --- .../java/at/asit/pdfover/gui/workflow/states/SigningState.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'pdf-over-gui/src') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java index 66680fc8..a4c84f91 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java @@ -134,7 +134,15 @@ public class SigningState extends State { */ @Override public void updateMainWindowBehavior() { - //no change of behavior necessary + MainWindowBehavior behavior = getStateMachine().getStatus() + .getBehavior(); + behavior.reset(); + behavior.setActive(Buttons.OPEN, true); + behavior.setActive(Buttons.POSITION, true); + behavior.setActive(Buttons.SIGN, true); + //behavior.setEnabled(Buttons.OPEN, true); + //behavior.setEnabled(Buttons.POSITION, true); + //behavior.setEnabled(Buttons.SIGN, true); } @Override -- cgit v1.2.3