mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +00:00
(gtk) #680: "Reverse Sort Order" doesn't work for "Sort by Progress"
This commit is contained in:
parent
b0103174f6
commit
4efdcab622
1 changed files with 2 additions and 2 deletions
|
@ -174,7 +174,7 @@ static int
|
||||||
compareDouble( double a, double b )
|
compareDouble( double a, double b )
|
||||||
{
|
{
|
||||||
if( a < b ) return -1;
|
if( a < b ) return -1;
|
||||||
if( b > a ) return 1;
|
if( b < a ) return 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -244,7 +244,7 @@ compareByProgress( GtkTreeModel * model,
|
||||||
sb = tr_torrentStatCached( tb );
|
sb = tr_torrentStatCached( tb );
|
||||||
ret = compareDouble( sa->percentDone, sb->percentDone );
|
ret = compareDouble( sa->percentDone, sb->percentDone );
|
||||||
if( !ret )
|
if( !ret )
|
||||||
ret = compareDouble( sa->ratio, sa->ratio );
|
ret = compareDouble( sa->ratio, sb->ratio );
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue