fix a crasher by setting the default download directory

This commit is contained in:
Mitchell Livingston 2008-11-09 14:14:33 +00:00
parent 19870b5794
commit 6aad895ce4
1 changed files with 3 additions and 2 deletions

View File

@ -211,7 +211,8 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
fLib = tr_sessionInitFull(NULL, /* use default config directory (Application Support) */ fLib = tr_sessionInitFull(NULL, /* use default config directory (Application Support) */
"macosx", "macosx",
NULL, /* download directory set when adding transfers */ #warning update when changing in prefs
TR_DEFAULT_CONFIG_DIR, /* download directory set when adding transfers */
[fDefaults boolForKey: @"PEXGlobal"], [fDefaults boolForKey: @"PEXGlobal"],
[fDefaults boolForKey: @"NatTraversal"], [fDefaults boolForKey: @"NatTraversal"],
[fDefaults integerForKey: @"BindPort"], [fDefaults integerForKey: @"BindPort"],
@ -4246,7 +4247,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
switch (type) switch (type)
{ {
case TR_RPC_TORRENT_ADDED: case TR_RPC_TORRENT_ADDED:
[self performSelectorOnMainThread: @selector(rpcAddTorrentStruct:) withObject: [self performSelectorOnMainThread: @selector(rpcAddTorrentStruct:) withObject:
[[NSValue valueWithPointer: torrentStruct] retain] waitUntilDone: NO]; [[NSValue valueWithPointer: torrentStruct] retain] waitUntilDone: NO];
break; break;