]> granicus.if.org Git - transmission/commitdiff
fix a crasher by setting the default download directory
authorMitchell Livingston <livings124@transmissionbt.com>
Sun, 9 Nov 2008 14:14:33 +0000 (14:14 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Sun, 9 Nov 2008 14:14:33 +0000 (14:14 +0000)
macosx/Controller.m

index d6a5b9ef7e71e7e6e39822477d6659a774ef6b67..7b1ed85e10dd74b1c3ffec4ae483677e24fd0f19 100644 (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) */
                                 "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: @"NatTraversal"],
                                 [fDefaults integerForKey: @"BindPort"],
@@ -4246,7 +4247,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
     switch (type)
     {
         case TR_RPC_TORRENT_ADDED:
-            [self performSelectorOnMainThread: @selector(rpcAddTorrentStruct:) withObject:
+                [self performSelectorOnMainThread: @selector(rpcAddTorrentStruct:) withObject:
                 [[NSValue valueWithPointer: torrentStruct] retain] waitUntilDone: NO];
             break;