mirror of
https://github.com/transmission/transmission
synced 2025-02-20 21:26:53 +00:00
#4956 Crash when creating a torrent on 10.7
This commit is contained in:
parent
a34c0981fa
commit
e94cf23702
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue