From: Mike Gelfand Date: Thu, 7 May 2015 06:45:35 +0000 (+0000) Subject: #5946: Save "prefetch-enabled" setting as boolean (spotted by cfpp2p) X-Git-Tag: 2.90~168 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df980312942feec537c3c19ce4f242acc4c17292;p=transmission #5946: Save "prefetch-enabled" setting as boolean (spotted by cfpp2p) --- diff --git a/libtransmission/session.c b/libtransmission/session.c index 8e83441d2..3ffc4efa4 100644 --- a/libtransmission/session.c +++ b/libtransmission/session.c @@ -417,7 +417,7 @@ tr_sessionGetSettings (tr_session * s, tr_variant * d) tr_variantDictAddBool (d, TR_KEY_pex_enabled, s->isPexEnabled); tr_variantDictAddBool (d, TR_KEY_port_forwarding_enabled, tr_sessionIsPortForwardingEnabled (s)); tr_variantDictAddInt (d, TR_KEY_preallocation, s->preallocationMode); - tr_variantDictAddInt (d, TR_KEY_prefetch_enabled, s->isPrefetchEnabled); + tr_variantDictAddBool (d, TR_KEY_prefetch_enabled, s->isPrefetchEnabled); tr_variantDictAddInt (d, TR_KEY_peer_id_ttl_hours, s->peer_id_ttl_hours); tr_variantDictAddBool (d, TR_KEY_queue_stalled_enabled, tr_sessionGetQueueStalledEnabled (s)); tr_variantDictAddInt (d, TR_KEY_queue_stalled_minutes, tr_sessionGetQueueStalledMinutes (s));