fix infinite loop when quicklooking a collapsed group
This commit is contained in:
parent
3bac97b948
commit
8d3c742eb1
|
@ -4085,7 +4085,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
|||
|
||||
//do in reverse to find torrent before group
|
||||
int row;
|
||||
for (row = NSMaxRange(visibleRows) - 1; row >= visibleRows.location; row--)
|
||||
for (row = NSMaxRange(visibleRows) - 1; row >= (int)visibleRows.location; row--)
|
||||
{
|
||||
id item = [fTableView itemAtRow: row];
|
||||
if ([item isKindOfClass: [Torrent class]] && [[(Torrent *)item dataLocation] isEqualToString: fullPath])
|
||||
|
|
Loading…
Reference in New Issue