Changeset 10601


Ignore:
Timestamp:
May 1, 2010, 2:14:59 PM (8 years ago)
Author:
charles
Message:

(1.9x libT) backport r10511 for #3126 "Incomplete Dir. doesn't need to be auto-created". This patch makes the other clients behave as the mac client wrt using the download dir as the default incomplete dir

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.9x/libtransmission/session.c

    r10594 r10601  
    234234
    235235void
    236 tr_sessionGetDefaultSettings( const char * configDir, tr_benc * d )
    237 {
    238     char * incompleteDir = tr_buildPath( configDir, "Incomplete", NULL );
    239 
     236tr_sessionGetDefaultSettings( const char * configDir UNUSED, tr_benc * d )
     237{
    240238    assert( tr_bencIsDict( d ) );
    241239
     
    247245    tr_bencDictAddBool( d, TR_PREFS_KEY_DSPEED_ENABLED,           FALSE );
    248246    tr_bencDictAddInt ( d, TR_PREFS_KEY_ENCRYPTION,               TR_DEFAULT_ENCRYPTION );
    249     tr_bencDictAddStr ( d, TR_PREFS_KEY_INCOMPLETE_DIR,           incompleteDir );
     247    tr_bencDictAddStr ( d, TR_PREFS_KEY_INCOMPLETE_DIR,           tr_getDefaultDownloadDir( ) );
    250248    tr_bencDictAddBool( d, TR_PREFS_KEY_INCOMPLETE_DIR_ENABLED,   FALSE );
    251249    tr_bencDictAddBool( d, TR_PREFS_KEY_LAZY_BITFIELD,            TRUE );
     
    293291    tr_bencDictAddStr ( d, TR_PREFS_KEY_BIND_ADDRESS_IPV4,        TR_DEFAULT_BIND_ADDRESS_IPV4 );
    294292    tr_bencDictAddStr ( d, TR_PREFS_KEY_BIND_ADDRESS_IPV6,        TR_DEFAULT_BIND_ADDRESS_IPV6 );
    295 
    296     tr_free( incompleteDir );
    297293}
    298294
Note: See TracChangeset for help on using the changeset viewer.