Merge branch '4.0' of github.com:Ultimaker/Cura into CURA-6013-rate-packages

This commit is contained in:
Jaime van Kessel 2018-12-12 11:50:26 +01:00
commit e30ca20c54
156 changed files with 3195 additions and 3884 deletions

View file

@ -691,7 +691,8 @@ class Toolbox(QObject, Extension):
self.setDownloadProgress(new_progress)
if bytes_sent == bytes_total:
self.setIsDownloading(False)
cast(QNetworkReply, self._download_reply).downloadProgress.disconnect(self._onDownloadProgress)
self._download_reply = cast(QNetworkReply, self._download_reply)
self._download_reply.downloadProgress.disconnect(self._onDownloadProgress)
# Check if the download was sucessfull
if self._download_reply.attribute(QNetworkRequest.HttpStatusCodeAttribute) != 200: