Ignore:
Timestamp:
Oct 20, 2007, 9:27:46 PM (15 years ago)
Author:
livings124
Message:

eliminate the redundant isPaused, instead using !isActive

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TorrentTableView.m

    r3384 r3485  
    159159        if ([torrent isActive])
    160160            [fController stopTorrents: [NSArray arrayWithObject: torrent]];
    161         else if ([torrent isPaused])
     161        else
    162162        {
    163163            if ([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask)
     
    168168                [fController resumeTorrents: [NSArray arrayWithObject: torrent]];
    169169        }
    170         else;
    171170    }
    172171    else if (row == oldRow && [self pointInRevealRect: point] && [self pointInRevealRect: fClickPoint])
     
    461460    if ([torrent isActive])
    462461        pauseImage = fClickIn && NSPointInRect(fClickPoint, pauseRect) ? fPauseOnIcon : fPauseOffIcon;
    463     else if ([torrent isPaused])
     462    else
    464463    {
    465464        BOOL inPauseRect = fClickIn && NSPointInRect(fClickPoint, pauseRect);
     
    471470            pauseImage = inPauseRect ? fResumeOnIcon : fResumeOffIcon;
    472471    }
    473     else;
    474472   
    475473    if (pauseImage)
Note: See TracChangeset for help on using the changeset viewer.