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:
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 ) )
|
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 ) )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue