CPOutlineView notify for items expanded after having reloaded them

This commit is contained in:
Antoine Mercadal committed 2012-09-10 13:49:40 -07:00
1 parent fe138be7ae
commit e4a6d8520c
1 file changed
+1 -2
+1 -2
View File
@@ -376,9 +376,8 @@ var CPOutlineViewCoalesceSelectionNotificationStateOff = 0,
var previousRowCount = [self numberOfRows];
itemInfo.isExpanded = YES;
// XXX Shouldn't the items reload before the notification is sent?
[self _noteItemDidExpand:anItem];
[self reloadItem:anItem reloadChildren:YES];
[self _noteItemDidExpand:anItem];
// Shift selection indexes below so that the same items remain selected.
var rowCountDelta = [self numberOfRows] - previousRowCount;