mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
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
This commit is contained in:
@@ -1231,10 +1231,9 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
||||
|
||||
- (void) urlSheetDidEnd: (URLSheetWindowController *) controller url: (NSString *) urlString returnCode: (NSInteger) returnCode
|
||||
{
|
||||
if (returnCode != 1)
|
||||
return;
|
||||
if (returnCode == 1)
|
||||
[self performSelectorOnMainThread: @selector(openURL:) withObject: urlString waitUntilDone: NO];
|
||||
|
||||
[self performSelectorOnMainThread: @selector(openURL:) withObject: urlString waitUntilDone: NO];
|
||||
[controller release];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user