Changeset 1259

Show
Ignore:
Timestamp:
01/31/10 18:50:22 (1 month ago)
Author:
astrange
Message:

Replace an empty trash action with a deletion in the prefpane

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CPFPerianPrefPaneController.m

    r1258 r1259  
    371371                NSInteger tag; 
    372372                 
    373                 if([[NSFileManager defaultManager] fileExistsAtPath:tempPrefPane isDirectory:&isDir] && isDir) 
    374                         [[NSWorkspace sharedWorkspace] performFileOperation:NSWorkspaceRecycleOperation  
    375                                                                                                                  source:[tempPrefPane stringByDeletingLastPathComponent]  
    376                                                                                                         destination:@""  
    377                                                                                                                   files:[NSArray arrayWithObject:[tempPrefPane lastPathComponent]]  
    378                                                                                                                         tag:&tag]; 
     373                [[NSFileManager defaultManager] removeFileAtPath:tempPrefPane handler:nil]; 
    379374                 
    380375                [self installUninstall:nil];