1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 17:47:37 +00:00

(trunk gtk) fix PEX option bug, again reported by Rolcol

This commit is contained in:
Charles Kerr 2008-12-14 23:46:57 +00:00
parent 9294a6f58e
commit da6b7ee137

View file

@ -1093,13 +1093,11 @@ prefschanged( TrCore * core UNUSED,
} }
else if( !strcmp( key, TR_PREFS_KEY_PORT_FORWARDING ) ) else if( !strcmp( key, TR_PREFS_KEY_PORT_FORWARDING ) )
{ {
const gboolean enabled = pref_flag_get( key ); tr_sessionSetPortForwardingEnabled( tr, pref_flag_get( key ) );
tr_sessionSetPortForwardingEnabled( tr, enabled );
} }
else if( !strcmp( key, TR_PREFS_KEY_PEX_ENABLED ) ) else if( !strcmp( key, TR_PREFS_KEY_PEX_ENABLED ) )
{ {
const gboolean b = pref_flag_get( key ); tr_sessionSetPexEnabled( tr, pref_flag_get( key ) );
tr_sessionSetPortForwardingEnabled( tr, b );
} }
else if( !strcmp( key, TR_PREFS_KEY_RPC_PORT ) ) else if( !strcmp( key, TR_PREFS_KEY_RPC_PORT ) )
{ {