only update and sort by group when filtering, not during normal sorting

This commit is contained in:
Mitchell Livingston
2008-01-23 20:31:04 +00:00
parent 920811c894
commit 549521c602
5 changed files with 120 additions and 32 deletions

View File

@@ -316,8 +316,8 @@
[indexSet addIndex: i];
else
{
unsigned nextGroup = [fGroupIndexes indexGreaterThanIndex: i],
count = (nextGroup != NSNotFound ? nextGroup : [fTorrents count]) - i - 1 ;
NSUInteger nextGroup = [fGroupIndexes indexGreaterThanIndex: i],
count = (nextGroup != NSNotFound ? nextGroup : [fTorrents count]) - i - 1;
[indexSet addIndexesInRange: NSMakeRange(i+1, count)];
i = nextGroup-1;
}