diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2015-01-02 13:45:54 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2015-01-02 13:47:16 +0100 |
commit | c7531408b3ef4b2d284edf35ed983c23e7585231 (patch) | |
tree | 319f0d2cc51e2b81e15b073a4374f26a83e1850d /wizards | |
parent | e4c2340c4e0c048af4c77d17380cccf7f2985b5d (diff) |
Resolves fdo#87123: Impossible to create a form with wizard
Quoting Noel:
"
The original block of code looked like this before my changes:
MethodInvocation windowHidden = new MethodInvocation("windowHidden", this);
xWindow.addWindowListener((CommonListener) getGuiEventListener());
String dialogName = (String) Helper.getUnoPropertyValue(xDialogModel, PropertyNames.PROPERTY_NAME);
getGuiEventListener().add(dialogName, EVENT_ACTION_PERFORMED, windowHidden);
which is clearly bogus, since "actionPerformed" is not an event on the XWindowListener interface.
"
(see https://bugs.freedesktop.org/show_bug.cgi?id=87123#c14)
Change-Id: I4c4923e6cb21989fcd3e346b099a7e7b15526bf2
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/com/sun/star/wizards/ui/WizardDialog.java | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/wizards/com/sun/star/wizards/ui/WizardDialog.java b/wizards/com/sun/star/wizards/ui/WizardDialog.java index 081b9a36e59e..523673ab5a5b 100644 --- a/wizards/com/sun/star/wizards/ui/WizardDialog.java +++ b/wizards/com/sun/star/wizards/ui/WizardDialog.java @@ -461,15 +461,6 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL }); setControlProperty("btnWizardNext", "DefaultButton", Boolean.TRUE); - // add a window listener, to know - // if the user used "escape" key to - // close the dialog. - xWindow.addWindowListener(new XWindowListenerAdapter() { - @Override - public void windowHidden(EventObject event) { - cancelWizard_1(); - } - }); } catch (java.lang.Exception jexception) { |