Revision 3916144e
b/pithos-macos/PithosPreferencesController.m | ||
---|---|---|
337 | 337 |
#pragma mark NSOutlineViewDataSource |
338 | 338 |
|
339 | 339 |
- (NSInteger)outlineView:(NSOutlineView *)outlineView numberOfChildrenOfItem:(id)item { |
340 |
if (!selectedPithosAccount.active) |
|
341 |
return 0; |
|
340 | 342 |
if (outlineView == syncContainersOutlineView) { |
341 |
if (item == nil) |
|
342 |
return selectedPithosAccount.accountNode.children.count; |
|
343 |
if ([item class] == [PithosContainerNode class]) { |
|
343 |
if (item == nil) { |
|
344 |
if (selectedPithosAccount.accountNode.children) |
|
345 |
return selectedPithosAccount.accountNode.children.count; |
|
346 |
} else if ([item class] == [PithosContainerNode class]) { |
|
344 | 347 |
// We add 1 for the root files node |
345 | 348 |
NSInteger subdirCount = 1; |
346 | 349 |
for (PithosNode *node in [(PithosContainerNode *)item children]) { |
Also available in: Unified diff