summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/photon
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2010-01-18 16:00:30 +0000
committerSilenio Quarti <silenio>2010-01-18 16:00:30 +0000
commitd70097b3723123dbd8abcf6b34b2f106be849ad8 (patch)
tree00870f0b37308561dc5412a9683274fd3943a36d /bundles/org.eclipse.swt/Eclipse SWT/photon
parent5242997f2f7c136c61d8fbddcbd361228ca71624 (diff)
downloadeclipse.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-xbundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Decorations.java1
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;
}