Ignore:
Timestamp:
Feb 13, 2008, 7:33:04 PM (14 years ago)
Author:
livings124
Message:

hopefully fix a crash with the open window

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/AddWindowController.m

    r4716 r5030  
    201201    fTimer = nil;
    202202   
     203    [fFileController setTorrent: nil]; //avoid a crash when window tries to update
     204   
    203205    [fController askOpenConfirmed: self add: NO];
     206    return YES;
    204207}
    205208
     
    241244        [fTorrent trashTorrent];
    242245   
    243     //ensure last, since it releases this controller
    244     [fController askOpenConfirmed: self add: YES];
     246    [fFileController setTorrent: nil]; //avoid a crash when window tries to update
     247   
     248    [self close];
     249    [fController askOpenConfirmed: self add: YES]; //ensure last, since it releases this controller
    245250}
    246251
Note: See TracChangeset for help on using the changeset viewer.