(qt) Fix for sorting issue in ticket 3227

This commit is contained in:
Daniel Lee 2010-05-26 05:03:00 +00:00
parent 035dea80df
commit ad5acbab95
1 changed files with 9 additions and 3 deletions

View File

@ -44,14 +44,20 @@ TorrentFilter :: refreshPref( int key )
{
switch( key )
{
case Prefs :: FILTER_MODE:
if( rowCount( ) > 0 )
{
invalidateFilter( );
break;
}
invalidateFilter( );
/* force a re-sort */
sort( 0, !myPrefs.getBool(Prefs::SORT_REVERSED) ? Qt::AscendingOrder : Qt::DescendingOrder );
case Prefs :: SORT_MODE:
case Prefs :: SORT_REVERSED:
sort( 0, myPrefs.getBool(Prefs::SORT_REVERSED) ? Qt::AscendingOrder : Qt::DescendingOrder );
invalidate( );
break;
case Prefs :: FILTER_MODE:
invalidateFilter( );
break;
}
}