[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r15632: Fix bug 735. Damn the pref system and its strong types. (torbutton/trunk/src/chrome/content)
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);