mirror of
https://github.com/transmission/transmission.git
synced 2025-12-25 04:45:56 +00:00
#4956 Crash when creating a torrent on 10.7
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user