Revision 7da4ebcc pithos-macos/PithosSharingAccountsNode.m

b/pithos-macos/PithosSharingAccountsNode.m
54 54
    if ((self = [super init])) {
55 55
        self.pithos = aPithos;
56 56
        self.sharingAccount = @"";
57
        self.childrenUpdatedNotificationName = [NSString stringWithString:@"PithosSharingAccountsNodeChildrenUpdated"];
57 58
    }
58 59
    return self;
59 60
}
......
214 215
            @synchronized(self) {
215 216
                freshness = PithosNodeStateRefreshFinished;
216 217
            }
217
            // Notify observers that children are updated
218
            [[NSNotificationCenter defaultCenter] postNotificationName:@"PithosSharingAccountsNodeChildrenUpdated" object:self];
218
            if (childrenUpdatedNotificationName) {
219
                // Notify observers that children are updated
220
                [[NSNotificationCenter defaultCenter] postNotificationName:childrenUpdatedNotificationName object:self];
221
            }
219 222
        } else {
220 223
            [sharingAccountsRequest release];
221 224
            // Do an additional request to fetch more objects

Also available in: Unified diff