(qt) Fix for sorting issue in ticket 3227
This commit is contained in:
parent
035dea80df
commit
ad5acbab95
|
@ -44,14 +44,20 @@ TorrentFilter :: refreshPref( int key )
|
||||||
{
|
{
|
||||||
switch( 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_MODE:
|
||||||
case Prefs :: SORT_REVERSED:
|
case Prefs :: SORT_REVERSED:
|
||||||
sort( 0, myPrefs.getBool(Prefs::SORT_REVERSED) ? Qt::AscendingOrder : Qt::DescendingOrder );
|
sort( 0, myPrefs.getBool(Prefs::SORT_REVERSED) ? Qt::AscendingOrder : Qt::DescendingOrder );
|
||||||
invalidate( );
|
invalidate( );
|
||||||
break;
|
break;
|
||||||
case Prefs :: FILTER_MODE:
|
|
||||||
invalidateFilter( );
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue