fix infinite loop when quicklooking a collapsed group

This commit is contained in:
Mitchell Livingston 2008-05-21 19:27:22 +00:00
parent 3bac97b948
commit 8d3c742eb1
1 changed files with 1 additions and 1 deletions

View File

@ -4085,7 +4085,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
//do in reverse to find torrent before group //do in reverse to find torrent before group
int row; 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]; id item = [fTableView itemAtRow: row];
if ([item isKindOfClass: [Torrent class]] && [[(Torrent *)item dataLocation] isEqualToString: fullPath]) if ([item isKindOfClass: [Torrent class]] && [[(Torrent *)item dataLocation] isEqualToString: fullPath])