Changeset 2141


Ignore:
Timestamp:
Jun 17, 2007, 11:37:47 PM (15 years ago)
Author:
livings124
Message:

avoid a crash by storing if the torrent should be auto-opened when created

Location:
branches/file_selection/macosx
Files:
2 edited

Legend:

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

    r2140 r2141  
    3939    tr_metainfo_builder_t * fInfo;
    4040    NSString * fPath, * fLocation;
     41    BOOL fOpenTorrent;
    4142   
    4243    NSTimer * fTimer;
  • branches/file_selection/macosx/CreatorWindowController.m

    r2140 r2141  
    179179        trackerString = [@"http://" stringByAppendingString: trackerString];
    180180   
     181    fOpenTorrent = [fOpenCheck state] == NSOnState;
    181182    tr_makeMetaInfo(fInfo, [fLocation UTF8String], [trackerString UTF8String], [[fCommentView string] UTF8String],
    182183                    [fPrivateCheck state] == NSOnState);
     
    260261        else
    261262        {
    262             if ([fOpenCheck state] == NSOnState)
     263            if (fOpenTorrent)
    263264            {
    264265                NSDictionary * dict = [[NSDictionary alloc] initWithObjectsAndKeys: fLocation, @"File",
Note: See TracChangeset for help on using the changeset viewer.