Changeset 8026 for trunk/gtk/main.c


Ignore:
Timestamp:
Mar 5, 2009, 2:40:58 AM (13 years ago)
Author:
charles
Message:

(trunk gtk) #1773: First run - error in Properties

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/main.c

    r7911 r8026  
    407407    tr_notify_init( );
    408408    didinit = cf_init( configDir, NULL ); /* must come before actions_init */
    409     tr_prefs_init_global( );
     409    tr_prefs_init_defaults( );
    410410
    411411    myUIManager = gtk_ui_manager_new ( );
     
    439439    if( didlock && ( didinit || cf_init( configDir, &err ) ) )
    440440    {
     441        const char * str;
    441442        GtkWindow * win;
    442443        tr_session * session;
     444
     445        /* ensure the directories are created */
     446       if(( str = pref_string_get( PREF_KEY_DIR_WATCH )))
     447           mkdir_p( str, 0777 );
     448       if(( str = pref_string_get( TR_PREFS_KEY_DOWNLOAD_DIR )))
     449           mkdir_p( str, 0777 );
    443450
    444451        /* initialize the libtransmission session */
Note: See TracChangeset for help on using the changeset viewer.