Fixed an issue with the newly supported QWebEngineSettings attributes.

Thu, 25 Jan 2018 16:39:06 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 25 Jan 2018 16:39:06 +0100
changeset 6090
5cdb7ea57551
parent 6089
ca484325f02a
child 6091
7b989321d74c

Fixed an issue with the newly supported QWebEngineSettings attributes.

Documentation/Help/source.qch file | annotate | diff | comparison | revisions
Preferences/__init__.py file | annotate | diff | comparison | revisions
WebBrowser/Download/DownloadItem.py file | annotate | diff | comparison | revisions
Binary file Documentation/Help/source.qch has changed
--- a/Preferences/__init__.py	Thu Jan 25 13:42:27 2018 +0100
+++ b/Preferences/__init__.py	Thu Jan 25 16:39:06 2018 +0100
@@ -3006,7 +3006,8 @@
                  "BookmarksToolBarVisible", "StatusBarVisible",
                  "SessionAutoSave", "LoadTabOnActivation",
                  "SafeBrowsingEnabled", "SafeBrowsingFilterPlatform",
-                 "SafeBrowsingAutoUpdate",
+                 "SafeBrowsingAutoUpdate", "AllowGeolocationOnInsecureOrigins",
+                 "AllowWindowActivationFromJavaScript", "ShowScrollBars",
                  ]:
         return toBool(prefClass.settings.value(
             "WebBrowser/" + key, prefClass.webBrowserDefaults[key]))
--- a/WebBrowser/Download/DownloadItem.py	Thu Jan 25 13:42:27 2018 +0100
+++ b/WebBrowser/Download/DownloadItem.py	Thu Jan 25 16:39:06 2018 +0100
@@ -319,6 +319,7 @@
             name += '.' + endName
         return name, origName
     
+    # TODO: duplicate code to openFile()
     def __open(self):
         """
         Private slot to open the downloaded file.
@@ -578,6 +579,7 @@
         """
         return QFileInfo(self.__fileName).absoluteFilePath()
     
+    # TODO: change from tuple to dict
     def getData(self):
         """
         Public method to get the relevant download data.
@@ -591,6 +593,7 @@
                 self.downloadedSuccessfully(), self.__pageUrl,
                 self.__downloadedDateTime)
     
+    # TODO: change from tuple to dict
     def setData(self, data):
         """
         Public method to set the relevant download data.

eric ide

mercurial