Changeset 7522 for trunk/macosx/Controller.m
- Timestamp:
- Dec 29, 2008, 3:03:11 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Controller.m
r7521 r7522 2004 2004 if (groupRows) 2005 2005 { 2006 NS Array * oldTorrentGroups = nil;2006 NSMutableArray * oldTorrentGroups = [NSMutableArray array]; 2007 2007 if ([fDisplayedTorrents count] > 0 && [[fDisplayedTorrents objectAtIndex: 0] isKindOfClass: [TorrentGroup class]]) 2008 oldTorrentGroups = [NSArray arrayWithArray: fDisplayedTorrents];2008 [oldTorrentGroups addObjectsFromArray: fDisplayedTorrents]; 2009 2009 2010 2010 [fDisplayedTorrents removeAllObjects]; … … 2025 2025 2026 2026 //try to see if the group already exists 2027 for (; oldTorrentGroups &¤tOldGroupIndex < [oldTorrentGroups count]; currentOldGroupIndex++)2027 for (; currentOldGroupIndex < [oldTorrentGroups count]; currentOldGroupIndex++) 2028 2028 { 2029 2029 TorrentGroup * currentGroup = [oldTorrentGroups objectAtIndex: currentOldGroupIndex]; 2030 if ([currentGroup groupIndex] == groupValue) 2030 const NSInteger currentGroupValue = [currentGroup groupIndex]; 2031 if (currentGroupValue == groupValue) 2031 2032 { 2032 2033 group = currentGroup; 2033 2034 [[currentGroup torrents] removeAllObjects]; 2035 2036 currentOldGroupIndex++; 2037 } 2038 2039 if (currentGroupValue >= groupValue) 2034 2040 break; 2035 }2036 2041 } 2037 2042
Note: See TracChangeset
for help on using the changeset viewer.