From: Charles Kerr Date: Sun, 14 Dec 2008 22:41:44 +0000 (+0000) Subject: (trunk gtk) fix bug that didn't save the settings when the user changed the "blocklis... X-Git-Tag: 1.60~760 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=262bfbd2d661096760da83f5c2754bdc5be55adb;p=transmission (trunk gtk) fix bug that didn't save the settings when the user changed the "blocklist enabled" setting. reported by Rol Col --- diff --git a/gtk/main.c b/gtk/main.c index 6ff91f949..bb3dbb380 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -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 );