mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
Fix case where aborting a download would cause a crash
This commit is contained in:
parent
bf47bfc4ea
commit
2765122b95
1 changed files with 1 additions and 1 deletions
|
@ -559,7 +559,7 @@ class Toolbox(QObject, Extension):
|
|||
if self._download_reply:
|
||||
try:
|
||||
self._download_reply.downloadProgress.disconnect(self._onDownloadProgress)
|
||||
except TypeError: # Raised when the method is not connected to the signal yet.
|
||||
except (TypeError, RuntimeError): # Raised when the method is not connected to the signal yet.
|
||||
pass # Don't need to disconnect.
|
||||
self._download_reply.abort()
|
||||
self._download_reply = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue