mirror of
https://github.com/transmission/transmission
synced 2024-12-25 17:17:31 +00:00
(trunk gtk) fix PEX option bug, again reported by Rolcol
This commit is contained in:
parent
9294a6f58e
commit
da6b7ee137
1 changed files with 2 additions and 4 deletions
|
@ -1093,13 +1093,11 @@ prefschanged( TrCore * core UNUSED,
|
|||
}
|
||||
else if( !strcmp( key, TR_PREFS_KEY_PORT_FORWARDING ) )
|
||||
{
|
||||
const gboolean enabled = pref_flag_get( key );
|
||||
tr_sessionSetPortForwardingEnabled( tr, enabled );
|
||||
tr_sessionSetPortForwardingEnabled( tr, pref_flag_get( key ) );
|
||||
}
|
||||
else if( !strcmp( key, TR_PREFS_KEY_PEX_ENABLED ) )
|
||||
{
|
||||
const gboolean b = pref_flag_get( key );
|
||||
tr_sessionSetPortForwardingEnabled( tr, b );
|
||||
tr_sessionSetPexEnabled( tr, pref_flag_get( key ) );
|
||||
}
|
||||
else if( !strcmp( key, TR_PREFS_KEY_RPC_PORT ) )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue