diff options
Diffstat (limited to 'bundles')
3 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java index 4b76d0c1f2..4209bfebc3 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java @@ -2629,6 +2629,7 @@ public void setEnabled (boolean enabled) { state |= DISABLED; } enableWidget (enabled); + if (isDisposed ()) return; if (enabled) { if (enableWindow != 0) { OS.gdk_window_set_user_data (enableWindow, 0); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Link.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Link.java index 8b7d13eda6..c1e2227330 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Link.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Link.java @@ -159,6 +159,7 @@ void createWidget (int index) { void enableWidget (boolean enabled) { super.enableWidget (enabled); + if (isDisposed ()) return; TextStyle linkStyle = new TextStyle (null, enabled ? linkColor : linkDisabledColor, null); linkStyle.underline = true; for (int i = 0; i < offsets.length; i++) { diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java index c48407699c..a28f3e6ecd 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java @@ -1103,6 +1103,7 @@ public void setEnabled (boolean enabled) { state |= DISABLED; } enableWidget (enabled); + if (isDisposed ()) return; if (enabled) { if (enableWindow != 0) { OS.gdk_window_set_user_data (enableWindow, 0); |