0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-13 19:21:50 +02:00

fix(bec_connector): call cleanup on widgets if the parent was deleted

This commit is contained in:
2025-04-22 18:30:25 +02:00
parent a13de45131
commit fc1cdc814f

View File

@ -152,6 +152,9 @@ class BECConnector:
if connector_parent is not None:
self.parent_id = connector_parent.gui_id
if isinstance(self.parent(), QObject) and hasattr(self, "cleanup"):
self.parent().destroyed.connect(self.cleanup)
# Error popups
self.error_utility = ErrorPopupUtility()