Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey de l'Arago <joeydelarago@gmail.com>2022-09-23 11:50:26 +0300
committerJoey de l'Arago <joeydelarago@gmail.com>2022-09-23 11:50:26 +0300
commit39e3a18bf6431c9631436b1e4bd6ac429f6b1a5b (patch)
tree930cb3e22992ed996d8466dd56ddb1359703cb02
parentc729b87f3ccd9cfddd6269a234bc23516038db93 (diff)
Disconnect signal on deletion of CloudOutputDevice
CURA-9678
-rw-r--r--plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDevice.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDevice.py b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDevice.py
index 692a2af160..9daf563460 100644
--- a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDevice.py
+++ b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDevice.py
@@ -411,3 +411,7 @@ class CloudOutputDevice(UltimakerNetworkedPrinterOutputDevice):
root_url_prefix = "-staging" if self._account.is_staging else ""
return f"https://digitalfactory{root_url_prefix}.ultimaker.com/app/jobs/{self.clusterData.cluster_id}"
+
+ def __del__(self):
+ CuraApplication.getInstance().getBackend().backendDone.disconnect(self._resetPrintJob)
+ CuraApplication.getInstance().getController().getScene().sceneChanged.disconnect(self._onSceneChanged)