fix a crasher by setting the default download directory
This commit is contained in:
parent
19870b5794
commit
6aad895ce4
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue