mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-20 21:19:15 +08:00
Fix case where aborting a download would cause a crash
This commit is contained in:
parent
bf47bfc4ea
commit
2765122b95
@ -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…
x
Reference in New Issue
Block a user