Revision d4433f6f pithos-macos/PithosBrowserController.m

b/pithos-macos/PithosBrowserController.m
223 223
    [[[outlineView tableColumns] objectAtIndex:0] setDataCell:[[[PithosOutlineViewCell alloc] init] autorelease]];
224 224
    
225 225
    // Register for updates
226
    // PithosContainerNode updates browser nodes
227
    [[NSNotificationCenter defaultCenter] addObserver:self 
228
                                             selector:@selector(pithosNodeChildrenUpdated:) 
229
                                                 name:@"PithosContainerNodeChildrenUpdated" 
230
                                               object:nil];
231
    // PithosSubdirNode updates browser nodes
232
    [[NSNotificationCenter defaultCenter] addObserver:self 
233
                                             selector:@selector(pithosNodeChildrenUpdated:) 
234
                                                 name:@"PithosSubdirNodeChildrenUpdated" 
235
                                               object:nil];
236 226
    // PithosAccountNode accountNode updates outlineView container nodes 
237 227
    [[NSNotificationCenter defaultCenter] addObserver:self 
238 228
                                             selector:@selector(pithosAccountNodeChildrenUpdated:) 
239
                                                 name:@"PithosAccountNodeChildrenUpdated" 
229
                                                 name:@"PithosNodeChildrenUpdated" 
240 230
                                               object:accountNode];
241
    // PithosAccountNode other than accountNode updates nodes 
231
    // PithosNode updates browser nodes
242 232
    [[NSNotificationCenter defaultCenter] addObserver:self 
243 233
                                             selector:@selector(pithosNodeChildrenUpdated:) 
244
                                                 name:@"PithosAccountNodeChildrenUpdated" 
234
                                                 name:@"PithosNodeChildrenUpdated" 
245 235
                                               object:nil];
246
    // PithosSharingAccountsNode othersSharedNode updates browser nodes 
247
    [[NSNotificationCenter defaultCenter] addObserver:self 
248
                                             selector:@selector(pithosNodeChildrenUpdated:) 
249
                                                 name:@"PithosSharingAccountsNodeChildrenUpdated" 
250
                                               object:othersSharedNode];
251 236
    // Request for browser refresh 
252 237
    [[NSNotificationCenter defaultCenter] addObserver:self 
253 238
                                             selector:@selector(pithosBrowserRefreshNeeded:) 
......
437 422

  
438 423
- (void)pithosNodeChildrenUpdated:(NSNotification *)notification {
439 424
    PithosNode *node = (PithosNode *)[notification object];
440
    if (node == accountNode)
425
    if ((node == accountNode) || ![node.pithos isEqualTo:pithos])
441 426
        return;
442 427
    NSLog(@"pithosNodeChildrenUpdated:%@", node.url);
443 428
    NSInteger lastColumn = [browser lastColumn];

Also available in: Unified diff