Changeset 12610


Ignore:
Timestamp:
Aug 1, 2011, 11:37:38 PM (10 years ago)
Author:
jordan
Message:

(trunk qt) #671 "torrent queuing" -- when sorting by activity, add queuePosition to the end of our fallback comparison keys

File:
1 edited

Legend:

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

    r12607 r12610  
    8989            if( !val ) val = compare( a->sizeWhenDone(), b->sizeWhenDone() );
    9090            break;
     91        case SortMode :: SORT_BY_AGE:
     92            val = compare( a->dateAdded().toTime_t(), b->dateAdded().toTime_t() );
     93            break;
     94        case SortMode :: SORT_BY_ID:
     95            if( !val ) val = compare( a->id(), b->id() );
     96            break;
    9197        case SortMode :: SORT_BY_ACTIVITY:
    9298            if( !val ) val = compare( a->downloadSpeed() + a->uploadSpeed(), b->downloadSpeed() + b->uploadSpeed() );
    9399            if( !val ) val = compare( a->uploadedEver(), b->uploadedEver() );
    94             break;
    95         case SortMode :: SORT_BY_AGE:
    96             val = compare( a->dateAdded().toTime_t(), b->dateAdded().toTime_t() );
    97             break;
    98         case SortMode :: SORT_BY_ID:
    99             if( !val ) val = compare( a->id(), b->id() );
    100             break;
     100            // fall through
    101101        case SortMode :: SORT_BY_STATE:
    102102            if( !val ) val = compare( a->hasError(), b->hasError() );
Note: See TracChangeset for help on using the changeset viewer.