Changeset 9477


Ignore:
Timestamp:
Nov 4, 2009, 2:46:56 AM (13 years ago)
Author:
livings124
Message:

on non-folder torrents, the per-torrent action menu shouldn't show the file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TorrentTableView.m

    r9475 r9477  
    554554    //update file action menu
    555555    fMenuTorrent = [[self itemAtRow: row] retain];
    556     [self createFileMenu: fActionMenu forFiles: [fMenuTorrent fileList]];
     556   
     557    //show/hide the file divider
     558    const BOOL isFolder = [fMenuTorrent isFolder];
     559    [[fActionMenu itemAtIndex: numberOfNonFileItems-1] setHidden: !isFolder];
     560   
     561    if (isFolder)
     562        [self createFileMenu: fActionMenu forFiles: [fMenuTorrent fileList]];
    557563   
    558564    //update global limit check
Note: See TracChangeset for help on using the changeset viewer.