Fixed an issue in the Preferences file that caused some wrong defaults being used for the new web browser. maintenance

Sun, 19 Feb 2017 15:22:42 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 19 Feb 2017 15:22:42 +0100
branch
maintenance
changeset 5531
e7fff6f1ff19
parent 5529
cf8c8ad72166
child 5547
00e8452972f0

Fixed an issue in the Preferences file that caused some wrong defaults being used for the new web browser.

Preferences/__init__.py file | annotate | diff | comparison | revisions
diff -r cf8c8ad72166 -r e7fff6f1ff19 Preferences/__init__.py
--- a/Preferences/__init__.py	Sat Feb 18 15:28:49 2017 +0100
+++ b/Preferences/__init__.py	Sun Feb 19 15:22:42 2017 +0100
@@ -2835,11 +2835,12 @@
     elif key in ["SyncFtpPassword", "SyncEncryptionKey"]:
         from Utilities.crypto import pwConvert
         return pwConvert(prefClass.settings.value(
-            "WebBrowser/" + key, prefClass.helpDefaults[key]), encode=False)
+            "WebBrowser/" + key, prefClass.webBrowserDefaults[key]),
+            encode=False)
     elif key == "HelpViewerType":
         # special treatment to adjust for missing QtWebEngine
         value = int(prefClass.settings.value(
-            "WebBrowser/" + key, prefClass.helpDefaults[key]))
+            "WebBrowser/" + key, prefClass.webBrowserDefaults[key]))
         if QWebEngineSettings is None:
             value = prefClass.helpDefaults[key]
         return value
@@ -2878,7 +2879,7 @@
                  "AdBlockSubscriptions", "AdBlockExceptions",
                  ]:
         return toList(prefClass.settings.value(
-            "WebBrowser/" + key, prefClass.helpDefaults[key]))
+            "WebBrowser/" + key, prefClass.webBrowserDefaults[key]))
     elif key in ["AutoScrollDivider"]:
         return float(prefClass.settings.value(
             "WebBrowser/" + key, prefClass.webBrowserDefaults[key]))

eric ide

mercurial