commit | 3ef92555a752a10cc29d0a9a4fcb0d035b698f1f | [log] [tgz] |
---|---|---|
author | Judith Gull <jgu@bsiag.com> | Sun Mar 16 09:44:02 2014 +0100 |
committer | Judith Gull <jgu@bsiag.com> | Sun Mar 16 04:53:27 2014 -0400 |
tree | 90570a287472849ebe0b9ccef34c9a27912ad2a1 | |
parent | 9ebdc815d288d52bf7adb22058059cf84902c660 [diff] |
bug 427553: Alt+F4 does not close the application always https://bugs.eclipse.org/bugs/show_bug.cgi?id=427553 Change-Id: Ic821ae4c450edf9637180d63c8fad817cc6275df Reviewed-on: https://git.eclipse.org/r/23446 Tested-by: Hudson CI Reviewed-by: Judith Gull <jgu@bsiag.com> IP-Clean: Judith Gull <jgu@bsiag.com>
diff --git a/org.eclipse.scout.rt.client/src/org/eclipse/scout/rt/client/ui/desktop/UnsavedFormChangesForm.java b/org.eclipse.scout.rt.client/src/org/eclipse/scout/rt/client/ui/desktop/UnsavedFormChangesForm.java index 2760264..71f3d19 100644 --- a/org.eclipse.scout.rt.client/src/org/eclipse/scout/rt/client/ui/desktop/UnsavedFormChangesForm.java +++ b/org.eclipse.scout.rt.client/src/org/eclipse/scout/rt/client/ui/desktop/UnsavedFormChangesForm.java
@@ -136,9 +136,17 @@ public class NewHandler extends AbstractFormHandler { @Override + protected void execPostLoad() throws ProcessingException { + touch(); + } + + @Override protected void execStore() throws ProcessingException { - for (IForm f : getOpenFormsField().getValue()) { - f.doOk(); + IForm[] forms = getOpenFormsField().getValue(); + if (forms != null) { + for (IForm f : forms) { + f.doOk(); + } } }