Changeset 7212


Ignore:
Timestamp:
Nov 30, 2008, 9:23:59 PM (12 years ago)
Author:
livings124
Message:

#757 trio of group support patches

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/AddWindowController.m

    r7210 r7212  
    258258}
    259259
    260 - (void) setDestination: (NSString *) destination
     260- (void) setDestinationPath: (NSString *) destination
    261261{
    262262    [fDestination release];
     
    276276{
    277277    if (code == NSOKButton)
    278         [self setDestination: [[openPanel filenames] objectAtIndex: 0]];
     278        [self setDestinationPath: [[openPanel filenames] objectAtIndex: 0]];
    279279    else
    280280    {
     
    292292- (void) changeGroupValue: (id) sender
    293293{
     294    NSInteger previousGroup = fGroupValue;
    294295    fGroupValue = [sender tag];
    295296    if ([[GroupsController groups] usesCustomDownloadLocationForIndex: fGroupValue] &&
    296297        [[GroupsController groups] customDownloadLocationForIndex: fGroupValue])
    297         [self setDestination: [[GroupsController groups] customDownloadLocationForIndex: fGroupValue]];
     298        [self setDestinationPath: [[GroupsController groups] customDownloadLocationForIndex: fGroupValue]];
     299    else if ([fDestination isEqualToString: [[GroupsController groups] customDownloadLocationForIndex: previousGroup]])
     300        [self setDestinationPath: [[NSUserDefaults standardUserDefaults] stringForKey: @"DownloadFolder"]];
     301    else;
    298302}
    299303
  • trunk/macosx/GroupsWindowController.m

    r7210 r7212  
    224224        [[GroupsController groups] setUsesCustomDownloadLocation: NO forIndex: index];
    225225        [fCustomLocationEnableCheck setState: NSOffState];
     226        [fCustomLocationPopUp setEnabled: NO];
    226227    }
    227228
Note: See TracChangeset for help on using the changeset viewer.