diff options
author | Silenio Quarti <silenio> | 2010-01-18 15:59:26 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2010-01-18 15:59:26 +0000 |
commit | 5242997f2f7c136c61d8fbddcbd361228ca71624 (patch) | |
tree | 0bdf8efebce68384ed64fb25fc2ca379d64d3f50 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Decorations.java | |
parent | 16bac3e1a5ced1a4a3bd9de5634a920b21e78319 (diff) | |
download | eclipse.platform.swt-5242997f2f7c136c61d8fbddcbd361228ca71624.tar.gz eclipse.platform.swt-5242997f2f7c136c61d8fbddcbd361228ca71624.tar.xz eclipse.platform.swt-5242997f2f7c136c61d8fbddcbd361228ca71624.zip |
Bug 292893 - Shell default button may be disposed, causing IllegalArgumentException
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Decorations.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Decorations.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Decorations.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Decorations.java index 0ee4ad11fd..a138f99af9 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Decorations.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Decorations.java @@ -292,7 +292,9 @@ void fixDecorations (Decorations newDecorations, Control control, Menu [] menus) */ public Button getDefaultButton () { checkWidget(); - return defaultButton != null ? defaultButton : saveDefault; + Button button = defaultButton != null ? defaultButton : saveDefault; + if (button != null && button.isDisposed ()) return null; + return button; } /** |