Revision 46b46b83 pithos-macos/PithosObjectNode.m

b/pithos-macos/PithosObjectNode.m
131 131
        [[NSNotificationCenter defaultCenter] postNotificationName:@"PithosBrowserRefreshNeeeded" object:self];
132 132
}
133 133

  
134
- (void)setLimitedPithosObject:(ASIPithosObject *)aPithosObject {
135
    if (![pithosObject isEqualTo:aPithosObject]) {
136
        self.pithosObject.subdir = aPithosObject.subdir;
137
        self.pithosObject.name = aPithosObject.name;
138
        self.pithosObject.hash = aPithosObject.hash;
139
        self.pithosObject.objectHash = aPithosObject.objectHash;
140
        self.pithosObject.UUID = aPithosObject.UUID;
141
        self.pithosObject.bytes = aPithosObject.bytes;
142
        self.pithosObject.contentType = aPithosObject.contentType;
143
        self.pithosObject.lastModified = aPithosObject.lastModified;
144
        self.pithosObject.version = aPithosObject.version;
145
        self.pithosObject.versionTimestamp = aPithosObject.versionTimestamp;
146
        self.pithosObject.modifiedBy = aPithosObject.modifiedBy;
147
        self.pithosObject.sharedBy = aPithosObject.sharedBy;
148
        self.pithosObject.allowedTo = aPithosObject.allowedTo;
149
        if (!pithosNodeInfoController) {
150
            self.pithosObject.sharing = aPithosObject.sharing;
151
            self.pithosObject.publicURI = aPithosObject.publicURI;
152
            self.pithosObject = pithosObject;
153
        }
154
    }
155
}
156

  
134 157
#pragma mark -
135 158
#pragma mark ASIHTTPRequestDelegate
136 159

  
......
272 295
#pragma mark Actions
273 296

  
274 297
- (void)showPithosNodeInfo:(id)sender {
275
    if (!pithosNodeInfoController)
298
    if (!pithosNodeInfoController) {
276 299
        pithosNodeInfoController = [[PithosObjectNodeInfoController alloc] initWithPithosNode:self];
300
        [self refreshInfo];
301
    }
277 302
    [pithosNodeInfoController showWindow:sender];
278 303
    [[pithosNodeInfoController window] makeKeyAndOrderFront:sender];
279 304
    [NSApp activateIgnoringOtherApps:YES];

Also available in: Unified diff