Changeset 10147


Ignore:
Timestamp:
Feb 9, 2010, 1:15:52 PM (12 years ago)
Author:
livings124
Message:

delay creation of the message log window until it is first opened

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r10119 r10147  
    336336        fDisplayedTorrents = [[NSMutableArray alloc] init];
    337337       
    338         fMessageController = [[MessageWindowController alloc] init];
    339338        fInfoController = [[InfoWindowController alloc] init];
    340339       
     
    437436   
    438437    //load previous transfers
    439     NSArray * history = [[NSArray alloc] initWithContentsOfFile: [NSHomeDirectory() stringByAppendingPathComponent: TRANSFER_PLIST]];
    440    
    441     //old version saved transfer info in prefs file
     438    NSArray * history = [NSArray arrayWithContentsOfFile: [NSHomeDirectory() stringByAppendingPathComponent: TRANSFER_PLIST]];
     439   
    442440    if (!history)
    443441    {
     442        //old version saved transfer info in prefs file
    444443        if ((history = [fDefaults arrayForKey: @"History"]))
    445         {
    446             [history retain];
    447444            [fDefaults removeObjectForKey: @"History"];
    448         }
    449445    }
    450446   
     
    460456            }
    461457        }
    462         [history release];
    463458    }
    464459   
     
    16501645- (void) showMessageWindow: (id) sender
    16511646{
     1647    if (!fMessageController)
     1648        fMessageController = [[MessageWindowController alloc] init];
    16521649    [fMessageController showWindow: nil];
    16531650}
Note: See TracChangeset for help on using the changeset viewer.