summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Kovatch <skovatch>2011-01-21 17:23:29 +0000
committerScott Kovatch <skovatch>2011-01-21 17:23:29 +0000
commit4bfb2d44c42d56d757ebc85b377fc3c3d6fa800b (patch)
treea77a87eb9f246eaaa3f01a240193a0049634a55d
parenta3fca8e5dea31a82c4ad065e8e34046af5dd369c (diff)
downloadeclipse.platform.swt-4bfb2d44c42d56d757ebc85b377fc3c3d6fa800b.tar.gz
eclipse.platform.swt-4bfb2d44c42d56d757ebc85b377fc3c3d6fa800b.tar.xz
eclipse.platform.swt-4bfb2d44c42d56d757ebc85b377fc3c3d6fa800b.zip
334865 - ToolItem's enabled state is independent of its toolbar.
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolItem.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolItem.java
index 2da8c97f17..0bb593b926 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolItem.java
@@ -985,7 +985,7 @@ public void setEnabled (boolean enabled) {
} else {
state |= DISABLED;
}
- enableWidget(enabled && parent.isEnabled());
+ enableWidget(enabled);
}
/**