diff options
author | Silenio Quarti <silenio> | 2010-01-18 16:00:30 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2010-01-18 16:00:30 +0000 |
commit | d70097b3723123dbd8abcf6b34b2f106be849ad8 (patch) | |
tree | 00870f0b37308561dc5412a9683274fd3943a36d /bundles/org.eclipse.swt/Eclipse SWT/photon | |
parent | 5242997f2f7c136c61d8fbddcbd361228ca71624 (diff) | |
download | eclipse.platform.swt-d70097b3723123dbd8abcf6b34b2f106be849ad8.tar.gz eclipse.platform.swt-d70097b3723123dbd8abcf6b34b2f106be849ad8.tar.xz eclipse.platform.swt-d70097b3723123dbd8abcf6b34b2f106be849ad8.zip |
Bug 292893 - Shell default button may be disposed, causing IllegalArgumentException
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/photon')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Decorations.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Decorations.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Decorations.java index f327f05505..0129737f55 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Decorations.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Decorations.java @@ -203,6 +203,7 @@ Control computeTabRoot () { */ public Button getDefaultButton () { checkWidget(); + if (defaultButton != null && defaultButton.isDisposed ()) return null; return defaultButton; } |