Changeset 8172 for trunk/gtk/main.c


Ignore:
Timestamp:
Apr 7, 2009, 4:30:16 AM (12 years ago)
Author:
charles
Message:

(gtk trunk) better handling of the random port code, thanks to feedback from Rolcol

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/main.c

    r8151 r8172  
    438438        session = tr_sessionInit( "gtk", configDir, TRUE, pref_get_all( ) );
    439439        pref_flag_set( TR_PREFS_KEY_ALT_SPEED_ENABLED, tr_sessionUsesAltSpeed( session ) );
     440        pref_int_set( TR_PREFS_KEY_PEER_PORT, tr_sessionGetPeerPort( session ) );
    440441        cbdata->core = tr_core_new( session );
    441442
     
    939940    {
    940941        tr_setMessageLevel( pref_int_get( key ) );
    941     }
    942     else if( !strcmp( key, TR_PREFS_KEY_PEER_PORT_RANDOM_ON_START ) )
    943     {
    944         /* FIXME */
    945942    }
    946943    else if( !strcmp( key, TR_PREFS_KEY_PEER_PORT ) )
Note: See TracChangeset for help on using the changeset viewer.