Changeset 10691


Ignore:
Timestamp:
May 26, 2010, 5:03:00 AM (12 years ago)
Author:
Longinus00
Message:

(qt) Fix for sorting issue in ticket 3227

File:
1 edited

Legend:

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

    r10459 r10691  
    4545    switch( key )
    4646    {
     47        case Prefs :: FILTER_MODE:
     48            if( rowCount( ) > 0 )
     49            {
     50                invalidateFilter( );
     51                break;
     52            }
     53            invalidateFilter( );
     54            /* force a re-sort */
     55            sort( 0, !myPrefs.getBool(Prefs::SORT_REVERSED) ? Qt::AscendingOrder : Qt::DescendingOrder );
    4756        case Prefs :: SORT_MODE:
    4857        case Prefs :: SORT_REVERSED:
    4958            sort( 0, myPrefs.getBool(Prefs::SORT_REVERSED) ? Qt::AscendingOrder : Qt::DescendingOrder );
    5059            invalidate( );
    51             break;
    52         case Prefs :: FILTER_MODE:
    53             invalidateFilter( );
    5460            break;
    5561    }
Note: See TracChangeset for help on using the changeset viewer.