Changeset 13474


Ignore:
Timestamp:
Sep 7, 2012, 4:22:21 AM (9 years ago)
Author:
jordan
Message:

fix tab damage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/main.c

    r13391 r13474  
    495495    /* ensure the directories are created */
    496496    if(( str = gtr_pref_string_get( TR_PREFS_KEY_DOWNLOAD_DIR )))
    497         g_mkdir_with_parents( str, 0777 );
     497      g_mkdir_with_parents( str, 0777 );
    498498    if(( str = gtr_pref_string_get( TR_PREFS_KEY_INCOMPLETE_DIR )))
    499         g_mkdir_with_parents( str, 0777 );
     499      g_mkdir_with_parents( str, 0777 );
    500500
    501501    /* initialize the libtransmission session */
     
    522522    /* check & see if it's time to update the blocklist */
    523523    if( gtr_pref_flag_get( TR_PREFS_KEY_BLOCKLIST_ENABLED ) ) {
    524         if( gtr_pref_flag_get( PREF_KEY_BLOCKLIST_UPDATES_ENABLED ) ) {
    525             const int64_t last_time = gtr_pref_int_get( "blocklist-date" );
    526             const int SECONDS_IN_A_WEEK = 7 * 24 * 60 * 60;
    527             const time_t now = time( NULL );
    528         if( last_time + SECONDS_IN_A_WEEK < now )
    529             gtr_core_blocklist_update( cbdata->core );
    530         }
     524      if( gtr_pref_flag_get( PREF_KEY_BLOCKLIST_UPDATES_ENABLED ) ) {
     525        const int64_t last_time = gtr_pref_int_get( "blocklist-date" );
     526        const int SECONDS_IN_A_WEEK = 7 * 24 * 60 * 60;
     527        const time_t now = time( NULL );
     528        if( last_time + SECONDS_IN_A_WEEK < now )
     529          gtr_core_blocklist_update( cbdata->core );
     530      }
    531531    }
    532532
Note: See TracChangeset for help on using the changeset viewer.