Ignore:
Timestamp:
Aug 1, 2010, 5:43:35 PM (12 years ago)
Author:
Longinus00
Message:

(trunk) #3471:Add 'finished' to filterbar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/torrent-filter.cc

    r11071 r11086  
    145145{
    146146    bool accepts;
    147     const tr_torrent_activity activity = tor->getActivity( );
    148147
    149148    switch( m.mode( ) )
     
    156155            break;
    157156        case FilterMode::SHOW_DOWNLOADING:
    158             accepts = activity == TR_STATUS_DOWNLOAD;
     157            accepts = tor->isDownloading( );
    159158            break;
    160159        case FilterMode::SHOW_SEEDING:
    161             accepts = activity == TR_STATUS_SEED;
     160            accepts = tor->isSeeding( );
    162161            break;
    163162        case FilterMode::SHOW_PAUSED:
    164             accepts = activity == TR_STATUS_STOPPED;
     163            accepts = tor->isPaused( );
     164            break;
     165        case FilterMode::SHOW_FINISHED:
     166            accepts = tor->isFinished( );
    165167            break;
    166168        case FilterMode::SHOW_QUEUED:
    167             accepts = activity == TR_STATUS_CHECK_WAIT;
     169            accepts = tor->isWaitingToVerify( );
    168170            break;
    169171        case FilterMode::SHOW_VERIFYING:
    170             accepts = activity == TR_STATUS_CHECK;
     172            accepts = tor->isVerifying( );
    171173            break;
    172174        case FilterMode::SHOW_ERROR:
Note: See TracChangeset for help on using the changeset viewer.