1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-12-28 01:41:20 +01:00

fix(main_window): cleanup adjusted with shiboken6

This commit is contained in:
2025-10-26 20:00:00 +01:00
committed by Klaus Wakonig
parent a20d8b269d
commit 652bf2d00b

View File

@@ -2,6 +2,7 @@ from __future__ import annotations
import os
import shiboken6
from bec_lib.endpoints import MessageEndpoints
from qtpy.QtCore import QEasingCurve, QEvent, QPropertyAnimation, QSize, Qt, QTimer
from qtpy.QtGui import QAction, QActionGroup, QIcon
@@ -468,9 +469,9 @@ class BECMainWindow(BECWidget, QMainWindow):
for child in children:
ancestor = WidgetHierarchy._get_becwidget_ancestor(child)
if ancestor is self:
child.cleanup()
child.close()
child.deleteLater()
if shiboken6.isValid(child):
child.close()
child.deleteLater()
# Timer cleanup
if hasattr(self, "_client_info_expire_timer") and self._client_info_expire_timer.isActive():