Changeset 10511


Ignore:
Timestamp:
Apr 22, 2010, 4:15:49 AM (11 years ago)
Author:
charles
Message:

(trunk libT) #3126 "Incomplete Dir. doesn't need to be auto created" -- have the default incomplete dir be the same as the default download dir. The Mac client already does it this way.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/session.c

    r10508 r10511  
    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 );
     
    295293    tr_bencDictAddBool( d, TR_PREFS_KEY_START,                    TRUE );
    296294    tr_bencDictAddBool( d, TR_PREFS_KEY_TRASH_ORIGINAL,           FALSE );
    297 
    298     tr_free( incompleteDir );
    299295}
    300296
Note: See TracChangeset for help on using the changeset viewer.