Preferences/__init__.py

changeset 1972
5341662d6cfb
parent 1965
96f5a76e1845
child 2005
6867cf32df67
--- a/Preferences/__init__.py	Sat Aug 04 13:46:18 2012 +0200
+++ b/Preferences/__init__.py	Sat Aug 04 17:32:24 2012 +0200
@@ -640,6 +640,7 @@
         "AdBlockEnabled": False,
         "AdBlockSubscriptions": [],
         "AdBlockUpdatePeriod": 7,
+        "AdBlockExceptions": [],
         "OfflineStorageDatabaseQuota": 50,     # 50 MB
         "UserAgent": "",
         "ShowPreview": True,
@@ -2080,8 +2081,8 @@
                 ]:
         return toBool(prefClass.settings.value("Help/" + key,
             prefClass.helpDefaults[key]))
-    elif key in ["AdBlockSubscriptions", "ClickToFlashWhitelist", "SendRefererWhitelist",
-                 "GreaseMonkeyDisabledScripts"]:
+    elif key in ["AdBlockSubscriptions", "AdBlockExceptions", "ClickToFlashWhitelist",
+                 "SendRefererWhitelist", "GreaseMonkeyDisabledScripts"]:
         return toList(prefClass.settings.value("Help/" + key,
             prefClass.helpDefaults[key]))
     else:

eric ide

mercurial