]> granicus.if.org Git - transmission/commitdiff
#5946: Save "prefetch-enabled" setting as boolean (spotted by cfpp2p)
authorMike Gelfand <mikedld@mikedld.com>
Thu, 7 May 2015 06:45:35 +0000 (06:45 +0000)
committerMike Gelfand <mikedld@mikedld.com>
Thu, 7 May 2015 06:45:35 +0000 (06:45 +0000)
libtransmission/session.c

index 8e83441d2e2909679d6abad755ba469fba28f63d..3ffc4efa4bf23315f3d6a2c997a553cfdc81b747 100644 (file)
@@ -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));