summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/cocoa
diff options
context:
space:
mode:
authorLakshmi Shanmugam <lshanmug@in.ibm.com>2012-05-24 20:12:57 +0530
committerLakshmi Shanmugam <lshanmug@in.ibm.com>2012-05-24 20:12:57 +0530
commit6a31dd042116a0380e47f12336685d693a47ad04 (patch)
treeec306b0f645f925eccbb5f214ea6a43e680fc234 /bundles/org.eclipse.swt/Eclipse SWT/cocoa
parent527a5ae097cc83da23c42593d765216703192900 (diff)
downloadeclipse.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.java4
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);