--- a/WebBrowser/Download/DownloadManager.py Tue Feb 06 19:18:24 2018 +0100 +++ b/WebBrowser/Download/DownloadManager.py Tue Feb 06 19:18:43 2018 +0100 @@ -216,7 +216,7 @@ @param append flag indicating to append the item @type bool """ - itm.statusChanged.connect(self.__updateRow) + itm.statusChanged.connect(lambda: self.__updateRow(itm)) itm.downloadFinished.connect(self.__finished) # insert at top of window @@ -241,15 +241,13 @@ self.changeOccurred() self.__updateActiveItemCount() - def __updateRow(self, itm=None): + def __updateRow(self, itm): """ Private slot to update a download item. - @param itm reference to the download item (DownloadItem) + @param itm reference to the download item + @type DownloadItem """ - if itm is None: - itm = self.sender() - if itm not in self.__downloads: return