mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-11-27 19:47:58 +01:00
fix(bec_connector): call cleanup on widgets if the parent was deleted
This commit is contained in:
1 parent
a13de45131
commit
fc1cdc814f
1 file changed
+3
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user