(trunk gtk) fix bug that didn't save the settings when the user changed the "blocklist enabled" setting. reported by Rol Col

This commit is contained in:
Charles Kerr 2008-12-14 22:41:44 +00:00
parent 3634a262b4
commit 262bfbd2d6
1 changed files with 5 additions and 0 deletions

View File

@ -1039,6 +1039,11 @@ prefschanged( TrCore * core UNUSED,
const int port = pref_int_get( key );
tr_sessionSetPeerPort( tr, port );
}
else if( !strcmp( key, TR_PREFS_KEY_BLOCKLIST_ENABLED ) )
{
const gboolean flag = pref_flag_get( key );
tr_blocklistSetEnabled( tr, flag );
}
else if( !strcmp( key, PREF_KEY_SHOW_TRAY_ICON ) )
{
const int show = pref_flag_get( key );