fix(main_window): removed general forced cleanup

This commit is contained in:
wyzula_j authored and Klaus Wakonig committed 2025-11-24 10:55:17 +01:00
1 parent deb2e6e39d
commit 6b9e7fb969
1 file changed
-15
@@ -458,21 +458,6 @@ class BECMainWindow(BECWidget, QMainWindow):
return super().event(event)
def cleanup(self):
central_widget = self.centralWidget()
if central_widget is not None:
central_widget.close()
central_widget.deleteLater()
if not isinstance(central_widget, BECWidget):
# if the central widget is not a BECWidget, we need to call the cleanup method
# of all widgets whose parent is the current BECMainWindow
children = self.findChildren(BECWidget)
for child in children:
ancestor = WidgetHierarchy._get_becwidget_ancestor(child)
if ancestor is self:
if shiboken6.isValid(child):
child.close()
child.deleteLater()
# Timer cleanup
if hasattr(self, "_client_info_expire_timer") and self._client_info_expire_timer.isActive():
self._client_info_expire_timer.stop()