[or-cvs] r15632: Fix bug 735. Damn the pref system and its strong types. (torbutton/trunk/src/chrome/content)

mikeperry at seul.org mikeperry at seul.org
Thu Jul 3 19:00:23 UTC 2008


Author: mikeperry
Date: 2008-07-03 15:00:23 -0400 (Thu, 03 Jul 2008)
New Revision: 15632

Modified:
   torbutton/trunk/src/chrome/content/torbutton.js
Log:

Fix bug 735. Damn the pref system and its strong types.



Modified: torbutton/trunk/src/chrome/content/torbutton.js
===================================================================
--- torbutton/trunk/src/chrome/content/torbutton.js	2008-07-03 18:25:57 UTC (rev 15631)
+++ torbutton/trunk/src/chrome/content/torbutton.js	2008-07-03 19:00:23 UTC (rev 15632)
@@ -983,8 +983,8 @@
         }
     } else {
         if(m_tb_prefs.getBoolPref('extensions.torbutton.block_nthwrite')) {
-            m_tb_prefs.setBoolPref("browser.history_expire_days", 0);
-            m_tb_prefs.setBoolPref("browser.download.manager.retention", 0);
+            m_tb_prefs.setIntPref("browser.history_expire_days", 0);
+            m_tb_prefs.setIntPref("browser.download.manager.retention", 0);
         } else {
             torbutton_setIntPref("browser.history_expire_days", 
                     "expire_history", 0, mode, changed);



More information about the tor-commits mailing list