WebBrowser/Download/DownloadManager.py

changeset 6091
7b989321d74c
parent 6085
7e48a0d98cce
child 6093
5ed91fe54bc9
--- a/WebBrowser/Download/DownloadManager.py	Thu Jan 25 16:39:06 2018 +0100
+++ b/WebBrowser/Download/DownloadManager.py	Thu Jan 25 17:21:00 2018 +0100
@@ -342,8 +342,8 @@
         if not WebBrowserWindow.isPrivate():
             downloads = Preferences.getWebBrowser("DownloadManagerDownloads")
             for download in downloads:
-                if not download[0].isEmpty() and \
-                   download[1] != "":
+                if not download["URL"].isEmpty() and \
+                   bool(download["Location"]):
                     from .DownloadItem import DownloadItem
                     itm = DownloadItem(parent=self)
                     itm.setData(download)

eric ide

mercurial