Changeset 2285


Ignore:
Timestamp:
Jul 4, 2007, 6:32:48 PM (15 years ago)
Author:
livings124
Message:

in file selection, if you option click a file checkbox, it will select/deselect all

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r2282 r2285  
    917917    {
    918918        Torrent * torrent = [fTorrents objectAtIndex: 0];
    919         [torrent setFileCheckState: [object intValue] != NSOffState ? NSOnState : NSOffState
    920                                         forIndexes: [item objectForKey: @"Indexes"]];
     919        NSIndexSet * indexSet;
     920        if ([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask)
     921            indexSet = [NSIndexSet indexSetWithIndexesInRange: NSMakeRange(0, [torrent fileCount])];
     922        else
     923            indexSet = [item objectForKey: @"Indexes"];
     924       
     925        [torrent setFileCheckState: [object intValue] != NSOffState ? NSOnState : NSOffState forIndexes: indexSet];
    921926        [fFileOutline reloadData];
    922927    }
Note: See TracChangeset for help on using the changeset viewer.