diff options
author | Lakshmi Shanmugam <lshanmug@in.ibm.com> | 2012-05-24 20:12:57 +0530 |
---|---|---|
committer | Lakshmi Shanmugam <lshanmug@in.ibm.com> | 2012-05-24 20:12:57 +0530 |
commit | 6a31dd042116a0380e47f12336685d693a47ad04 (patch) | |
tree | ec306b0f645f925eccbb5f214ea6a43e680fc234 /bundles/org.eclipse.swt/Eclipse SWT/cocoa | |
parent | 527a5ae097cc83da23c42593d765216703192900 (diff) | |
download | eclipse.platform.swt-6a31dd042116a0380e47f12336685d693a47ad04.tar.gz eclipse.platform.swt-6a31dd042116a0380e47f12336685d693a47ad04.tar.xz eclipse.platform.swt-6a31dd042116a0380e47f12336685d693a47ad04.zip |
Bug 378846-Eclipse Crashes while clicking button when a table has
the focus
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/cocoa')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java index 132a70cf84..a8d5679f39 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java @@ -2331,12 +2331,10 @@ void register () { } void releaseChildren (boolean destroy) { - int count = itemCount; itemCount = 0; ignoreSelect = true; ((NSOutlineView) view).reloadData (); ignoreSelect = false; - itemCount = count; for (int i=0; i<items.length; i++) { TreeItem item = items [i]; @@ -2386,12 +2384,10 @@ void releaseWidget () { */ public void removeAll () { checkWidget (); - int count = itemCount; itemCount = 0; ignoreSelect = true; ((NSOutlineView) view).reloadData (); ignoreSelect = false; - itemCount = count; for (int i=0; i<items.length; i++) { TreeItem item = items [i]; if (item != null && !item.isDisposed ()) item.release (false); |