Changeset 7395


Ignore:
Timestamp:
Dec 14, 2008, 11:44:06 PM (10 years ago)
Author:
charles
Message:

(1.4x gtk) fix some preferences bugs revealed by Rolcol's testing out changes in trunk

Location:
branches/1.4x/gtk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.4x/gtk/main.c

    r7020 r7395  
    11171117        tr_sessionSetEncryption( tr, encryption );
    11181118    }
     1119    else if( !strcmp( key, PREF_KEY_BLOCKLIST_ENABLED ) )
     1120    {
     1121        tr_blocklistSetEnabled( tr, pref_flag_get( key ) );
     1122    }
     1123    else if( !strcmp( key, PREF_KEY_DOWNLOAD_DIR ) )
     1124    {
     1125        tr_sessionSetDownloadDir( tr, pref_string_get( key ) );
     1126    }
    11191127    else if( !strcmp( key, PREF_KEY_PORT ) )
    11201128    {
     
    11591167    else if( !strcmp( key, PREF_KEY_PORT_FORWARDING ) )
    11601168    {
    1161         const gboolean enabled = pref_flag_get( key );
    1162         tr_sessionSetPortForwardingEnabled( tr, enabled );
     1169        tr_sessionSetPortForwardingEnabled( tr, pref_flag_get( key ) );
    11631170    }
    11641171    else if( !strcmp( key, PREF_KEY_PEX ) )
    11651172    {
    1166         const gboolean b = pref_flag_get( key );
    1167         tr_sessionSetPortForwardingEnabled( tr, b );
     1173        tr_sessionSetPexEnabled( tr, pref_flag_get( key ) );
    11681174    }
    11691175    else if( !strcmp( key, PREF_KEY_RPC_ENABLED ) )
     
    12321238        const char * s = pref_string_get( key );
    12331239        tr_sessionSetProxyPassword( tr, s );
     1240    }
     1241    else if( !strcmp( key, PREF_KEY_PORT ) )
     1242    {
     1243        tr_sessionSetProxyPort( tr, pref_int_get( key ) );
    12341244    }
    12351245}
  • branches/1.4x/gtk/tr-core.c

    r7069 r7395  
    12131213                   const char * key )
    12141214{
     1215    g_signal_emit( core, TR_CORE_GET_CLASS( core )->prefsig, 0, key );
    12151216    pref_save( );
    1216     g_signal_emit( core, TR_CORE_GET_CLASS( core )->prefsig, 0, key );
    12171217}
    12181218
Note: See TracChangeset for help on using the changeset viewer.