Ignore:
Timestamp:
Jun 17, 2007, 6:04:27 PM (15 years ago)
Author:
livings124
Message:

add a check box for opening torrent files in the app

File:
1 edited

Legend:

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

    r2139 r2140  
    260260        else
    261261        {
    262             #warning make optional
    263             NSDictionary * dict = [[NSDictionary alloc] initWithObjectsAndKeys: fLocation, @"File",
    264                                     [fPath stringByDeletingLastPathComponent], @"Path", nil];
    265             [[NSNotificationCenter defaultCenter] postNotificationName: @"OpenCreatedTorrentFile" object: self userInfo: dict];
     262            if ([fOpenCheck state] == NSOnState)
     263            {
     264                NSDictionary * dict = [[NSDictionary alloc] initWithObjectsAndKeys: fLocation, @"File",
     265                                        [fPath stringByDeletingLastPathComponent], @"Path", nil];
     266                [[NSNotificationCenter defaultCenter] postNotificationName: @"OpenCreatedTorrentFile" object: self userInfo: dict];
     267            }
    266268        }
    267269       
Note: See TracChangeset for help on using the changeset viewer.