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

This commit is contained in:
Charles Kerr 2009-04-07 04:30:16 +00:00
parent 30bb6b3ecf
commit c8e7f0d7d2
1 changed files with 1 additions and 4 deletions

View File

@ -437,6 +437,7 @@ main( int argc,
/* initialize the libtransmission session */
session = tr_sessionInit( "gtk", configDir, TRUE, pref_get_all( ) );
pref_flag_set( TR_PREFS_KEY_ALT_SPEED_ENABLED, tr_sessionUsesAltSpeed( session ) );
pref_int_set( TR_PREFS_KEY_PEER_PORT, tr_sessionGetPeerPort( session ) );
cbdata->core = tr_core_new( session );
/* create main window now to be a parent to any error dialogs */
@ -939,10 +940,6 @@ prefschanged( TrCore * core UNUSED,
{
tr_setMessageLevel( pref_int_get( key ) );
}
else if( !strcmp( key, TR_PREFS_KEY_PEER_PORT_RANDOM_ON_START ) )
{
/* FIXME */
}
else if( !strcmp( key, TR_PREFS_KEY_PEER_PORT ) )
{
tr_sessionSetPeerPort( tr, pref_int_get( key ) );