Preferences/__init__.py

changeset 6138
b235f6fe5c9f
parent 6111
d38b38117d83
child 6151
29564aad2f97
equal deleted inserted replaced
6137:27962f3f457f 6138:b235f6fe5c9f
2943 if download["PageURL"] is None: 2943 if download["PageURL"] is None:
2944 download["PageURL"] = QUrl() 2944 download["PageURL"] = QUrl()
2945 download["Downloaded"] = prefClass.settings.value("Downloaded") 2945 download["Downloaded"] = prefClass.settings.value("Downloaded")
2946 if download["Downloaded"] is None: 2946 if download["Downloaded"] is None:
2947 download["Downloaded"] = QDateTime() 2947 download["Downloaded"] = QDateTime()
2948 else: 2948 elif isinstance(download["Downloaded"], str):
2949 download["Downloaded"] = QDateTime.fromString( 2949 download["Downloaded"] = QDateTime.fromString(
2950 download["Downloaded"], "yyyy-MM-dd hh:mm:ss") 2950 download["Downloaded"], "yyyy-MM-dd hh:mm:ss")
2951 downloads.append(download) 2951 downloads.append(download)
2952 prefClass.settings.endArray() 2952 prefClass.settings.endArray()
2953 return downloads 2953 return downloads

eric ide

mercurial