Preferences/__init__.py

branch
maintenance
changeset 6541
eb33ca9a8b22
parent 6525
ca6d66fee883
child 6569
b4aeb61b3e3c
equal deleted inserted replaced
6526:b9992e48f2fc 6541:eb33ca9a8b22
2756 downloads = [] 2756 downloads = []
2757 length = prefClass.settings.beginReadArray("Help/" + key) 2757 length = prefClass.settings.beginReadArray("Help/" + key)
2758 for index in range(length): 2758 for index in range(length):
2759 prefClass.settings.setArrayIndex(index) 2759 prefClass.settings.setArrayIndex(index)
2760 url = prefClass.settings.value("URL") 2760 url = prefClass.settings.value("URL")
2761 if url is None:
2762 url = QUrl()
2761 location = prefClass.settings.value("Location") 2763 location = prefClass.settings.value("Location")
2762 done = toBool(prefClass.settings.value("Done")) 2764 done = toBool(prefClass.settings.value("Done"))
2763 pageUrl = prefClass.settings.value("PageURL") 2765 pageUrl = prefClass.settings.value("PageURL")
2764 if pageUrl is None: 2766 if pageUrl is None:
2765 pageUrl = QUrl() 2767 pageUrl = QUrl()
2956 length = prefClass.settings.beginReadArray("WebBrowser/" + key) 2958 length = prefClass.settings.beginReadArray("WebBrowser/" + key)
2957 for index in range(length): 2959 for index in range(length):
2958 download = {} 2960 download = {}
2959 prefClass.settings.setArrayIndex(index) 2961 prefClass.settings.setArrayIndex(index)
2960 download["URL"] = prefClass.settings.value("URL") 2962 download["URL"] = prefClass.settings.value("URL")
2963 if download["URL"] is None:
2964 download["URL"] = QUrl()
2961 download["Location"] = prefClass.settings.value("Location") 2965 download["Location"] = prefClass.settings.value("Location")
2962 download["Done"] = toBool(prefClass.settings.value("Done")) 2966 download["Done"] = toBool(prefClass.settings.value("Done"))
2963 download["PageURL"] = prefClass.settings.value("PageURL") 2967 download["PageURL"] = prefClass.settings.value("PageURL")
2964 if download["PageURL"] is None: 2968 if download["PageURL"] is None:
2965 download["PageURL"] = QUrl() 2969 download["PageURL"] = QUrl()

eric ide

mercurial