Ignore:
Timestamp:
Feb 11, 2011, 3:17:36 AM (11 years ago)
Author:
livings124
Message:

fix a crash with the URL window, and memory leak with the URL window, and update the "Open" button of the URL window when shown

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r11868 r11872  
    12321232- (void) urlSheetDidEnd: (URLSheetWindowController *) controller url: (NSString *) urlString returnCode: (NSInteger) returnCode
    12331233{
    1234     if (returnCode != 1)
    1235         return;
    1236    
    1237     [self performSelectorOnMainThread: @selector(openURL:) withObject: urlString waitUntilDone: NO];
     1234    if (returnCode == 1)
     1235        [self performSelectorOnMainThread: @selector(openURL:) withObject: urlString waitUntilDone: NO];
     1236   
    12381237    [controller release];
    12391238}
Note: See TracChangeset for help on using the changeset viewer.