Ignore:
Timestamp:
Dec 14, 2009, 11:35:55 PM (13 years ago)
Author:
livings124
Message:

possible fix for #2586

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r9744 r9763  
    13561356    [fTorrents removeObjectsInArray: torrents];
    13571357   
     1358    //if not removed from displayed torrents, updateTorrentsInQueue might cause a crash
     1359    if ([fDisplayedTorrents count] > 0)
     1360    {
     1361        if ([[fDisplayedTorrents objectAtIndex: 0] isKindOfClass: [TorrentGroup class]])
     1362        {
     1363            for (TorrentGroup * group in fDisplayedTorrents)
     1364                [[group torrents] removeObjectsInArray: torrents];
     1365        }
     1366        else
     1367            [fDisplayedTorrents removeObjectsInArray: torrents];
     1368    }
     1369   
    13581370    for (Torrent * torrent in torrents)
    13591371    {
Note: See TracChangeset for help on using the changeset viewer.