[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] [torbutton/master] Fix bug causing preference dialog OK button to fail.



Author: Mike Perry <mikeperry-git@xxxxxxxxxx>
Date: Sun, 28 Nov 2010 18:54:14 -0800
Subject: Fix bug causing preference dialog OK button to fail.
Commit: 297dbc1611a425e70314522f3d41ef88cc81bbca

Patch from Chris Doble.
---
 src/chrome/content/preferences.js |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/src/chrome/content/preferences.js b/src/chrome/content/preferences.js
index 2dbe1b1..cfcfe2d 100644
--- a/src/chrome/content/preferences.js
+++ b/src/chrome/content/preferences.js
@@ -429,7 +429,7 @@ function torbutton_prefs_save(doc) {
     o_torprefs.setCharPref('no_proxies_on',      doc.getElementById('torbutton_noProxiesOn').value);
 
     o_torprefs.setBoolPref('saved.transparentTor', doc.getElementById('torbutton_transparentTor').selected);
-    if (o_torprefs.getBoolPref('torbutton_transparentTor')) {
+    if (o_torprefs.getBoolPref('saved.transparentTor')) {
         var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]
             .getService(Components.interfaces.nsIWindowMediator);
         var chrome = wm.getMostRecentWindow("navigator:browser");
@@ -547,9 +547,6 @@ function torbutton_prefs_save(doc) {
     o_torprefs.setBoolPref('locked_mode', doc.getElementById('torbutton_lockedMode').checked);
 
     o_torprefs.setIntPref('refererspoof',doc.getElementById('torbutton_refererSpoofGroup').selectedIndex);
-    if (doc.getElementById('torbutton_CustomReferer').selected)
-       o_torprefs.setCharPref('customref',doc.getElementById('torbutton_CustomRef').value);
-
     o_torprefs.setBoolPref('fix_google_srch', doc.getElementById('torbutton_fixGoogleSrch').checked);
     o_torprefs.setBoolPref('dodge_google_captcha', doc.getElementById('torbutton_noCaptcha').checked);
 
-- 
1.7.1