Changeset 2279


Ignore:
Timestamp:
Jul 3, 2007, 9:55:42 PM (15 years ago)
Author:
livings124
Message:

option pulldowns work for multiple transfers again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r2240 r2279  
    602602- (BOOL) validateMenuItem: (NSMenuItem *) menuItem
    603603{
    604     if ([fTorrents count] != 1)
    605         return NO;
    606    
    607604    SEL action = [menuItem action];
    608605   
     
    613610    if (action == @selector(setCheck:))
    614611    {
     612        if ([fFileOutline numberOfSelectedRows] <= 0)
     613            return NO;
     614       
    615615        Torrent * torrent = [fTorrents objectAtIndex: 0];
    616616        NSIndexSet * indexSet = [fFileOutline selectedRowIndexes], * itemIndexes;
     
    632632    if (action == @selector(setOnlySelectedCheck:))
    633633    {
     634        if ([fFileOutline numberOfSelectedRows] <= 0)
     635            return NO;
     636       
    634637        Torrent * torrent = [fTorrents objectAtIndex: 0];
    635638        NSIndexSet * indexSet = [fFileOutline selectedRowIndexes], * itemIndexes;
Note: See TracChangeset for help on using the changeset viewer.