Preferences: fixed an issue causing download URLs being set to None causing issues later on.

Fri, 05 Oct 2018 18:59:06 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 05 Oct 2018 18:59:06 +0200
changeset 6537
61a8d416dd34
parent 6536
c3dca7b0a486
child 6538
0a24808561e0

Preferences: fixed an issue causing download URLs being set to None causing issues later on.

Preferences/__init__.py file | annotate | diff | comparison | revisions
diff -r c3dca7b0a486 -r 61a8d416dd34 Preferences/__init__.py
--- a/Preferences/__init__.py	Wed Oct 03 19:55:11 2018 +0200
+++ b/Preferences/__init__.py	Fri Oct 05 18:59:06 2018 +0200
@@ -2758,6 +2758,8 @@
         for index in range(length):
             prefClass.settings.setArrayIndex(index)
             url = prefClass.settings.value("URL")
+            if url is None:
+                url = QUrl()
             location = prefClass.settings.value("Location")
             done = toBool(prefClass.settings.value("Done"))
             pageUrl = prefClass.settings.value("PageURL")
@@ -2958,6 +2960,8 @@
             download = {}
             prefClass.settings.setArrayIndex(index)
             download["URL"] = prefClass.settings.value("URL")
+            if download["URL"] is None:
+                download["URL"] = QUrl()
             download["Location"] = prefClass.settings.value("Location")
             download["Done"] = toBool(prefClass.settings.value("Done"))
             download["PageURL"] = prefClass.settings.value("PageURL")

eric ide

mercurial