This commit is contained in:
michael starke
2013-06-08 11:15:48 +02:00
parent 2470f70391
commit aeb5d630d4

View File

@@ -133,6 +133,10 @@
} }
BOOL isFistGroup = [document.root.groups count] == 0; BOOL isFistGroup = [document.root.groups count] == 0;
[document createGroup:group]; [document createGroup:group];
/*
TODO: Find out if a lower hierachy node was the first child
and auto-expand that item too
*/
if(isFistGroup) { if(isFistGroup) {
NSTreeNode *node = [_outlineView itemAtRow:0]; NSTreeNode *node = [_outlineView itemAtRow:0];
[_outlineView expandItem:node expandChildren:NO]; [_outlineView expandItem:node expandChildren:NO];