Preferences/__init__.py

changeset 6537
61a8d416dd34
parent 6522
20c9a023b6c1
child 6563
57db1fb596c8
--- 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