Changeset 2086


Ignore:
Timestamp:
Jun 16, 2007, 12:34:21 AM (15 years ago)
Author:
livings124
Message:

when checking/unchecking files, update the torrent status (and therefore the queue)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/file_selection/macosx/InfoWindowController.m

    r2058 r2086  
    902902    if ([identifier isEqualToString: @"Check"])
    903903    {
    904         [[fTorrents objectAtIndex: 0] setFileCheckState: [object intValue] != NSOffState ? NSOnState : NSOffState
     904        Torrent * torrent = [fTorrents objectAtIndex: 0];
     905        [torrent setFileCheckState: [object intValue] != NSOffState ? NSOnState : NSOffState
    905906                                        forFileItem: item];
     907       
     908        [torrent update];
     909        [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateQueue" object: self];
    906910        [fFileOutline reloadData];
    907911    }
Note: See TracChangeset for help on using the changeset viewer.