From e94cf2370258d42926d80a9a775c80ddbca0a792 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Mon, 23 Jul 2012 11:31:48 +0000 Subject: [PATCH] #4956 Crash when creating a torrent on 10.7 --- macosx/CreatorWindowController.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/macosx/CreatorWindowController.m b/macosx/CreatorWindowController.m index 834680fe9..6f247e5ad 100644 --- a/macosx/CreatorWindowController.m +++ b/macosx/CreatorWindowController.m @@ -544,6 +544,9 @@ fOpenWhenCreated = [fOpenCheck state] == NSOnState; //need this since the check box might not exist, and value in prefs might have changed from another creator window [fDefaults setURL: [fLocation URLByDeletingLastPathComponent] forKey: @"CreatorLocationURL"]; + if ([NSApp isOnLionOrBetter]) + [[self window] setRestorable: NO]; + [[NSNotificationCenter defaultCenter] postNotificationName: @"BeginCreateTorrentFile" object: fLocation userInfo: nil]; tr_makeMetaInfo(fInfo, [[fLocation path] UTF8String], trackerInfo, [fTrackers count], [[fCommentView string] UTF8String], [fPrivateCheck state] == NSOnState); tr_free(trackerInfo);