]> granicus.if.org Git - transmission/commitdiff
#4956 Crash when creating a torrent on 10.7
authorMitchell Livingston <livings124@transmissionbt.com>
Mon, 23 Jul 2012 11:31:48 +0000 (11:31 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Mon, 23 Jul 2012 11:31:48 +0000 (11:31 +0000)
macosx/CreatorWindowController.m

index 834680fe934dabbda7e5563c54e2b0c29d4368a9..6f247e5ad6b2e19115113d178b941fb650f06d20 100644 (file)
     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);