Changeset 2810


Ignore:
Timestamp:
Aug 16, 2007, 11:05:59 PM (14 years ago)
Author:
livings124
Message:

allow folders of files to be enabled/disabled from the action button

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r2794 r2810  
    824824        [fIcon setFlipped: YES];
    825825    }
    826    
    827826    return fIcon;
    828827}
     
    13701369}
    13711370
     1371#warning is progress different when seeding?
    13721372- (NSNumber *) progressSortKey
    13731373{
  • trunk/macosx/TorrentTableView.m

    r2793 r2810  
    354354            if (!folder)
    355355            {
    356                 [item setAction: @selector(checkFile:)];
    357                
    358356                icon = [[dict objectForKey: @"Icon"] copy];
    359357                [icon setFlipped: NO];
     
    377375            [icon release];
    378376           
     377            [item setAction: @selector(checkFile:)];
     378           
    379379            [menu addItem: item];
    380380            [item release];
     
    383383            item = [menu itemWithTitle: name];
    384384       
    385         if (!folder)
    386         {
    387             NSIndexSet * indexSet = [dict objectForKey: @"Indexes"];
    388             [item setState: [fMenuTorrent checkForFiles: indexSet]];
    389             [item setEnabled: [fMenuTorrent canChangeDownloadCheckForFiles: indexSet]];
    390         }
     385        NSIndexSet * indexSet = [dict objectForKey: @"Indexes"];
     386        [item setState: [fMenuTorrent checkForFiles: indexSet]];
     387        [item setEnabled: [fMenuTorrent canChangeDownloadCheckForFiles: indexSet]];
    391388    }
    392389}
Note: See TracChangeset for help on using the changeset viewer.