fix a display bug when pausing/resuming a torrent when filtering torrents by state
This commit is contained in:
parent
e1fa469d5a
commit
4d0e40c576
|
@ -263,7 +263,11 @@
|
|||
NSEnumerator * enumerator = [torrents objectEnumerator];
|
||||
NSMutableIndexSet * indexSet = [[NSMutableIndexSet alloc] init];
|
||||
while ((torrent = [enumerator nextObject]))
|
||||
[indexSet addIndex: [fTorrents indexOfObject: torrent]];
|
||||
{
|
||||
unsigned int index = [fTorrents indexOfObject: torrent];
|
||||
if (index != NSNotFound)
|
||||
[indexSet addIndex: index];
|
||||
}
|
||||
|
||||
[self selectRowIndexes: indexSet byExtendingSelection: NO];
|
||||
[indexSet release];
|
||||
|
|
Loading…
Reference in New Issue