mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-13 03:01:50 +02:00
fix(main_window): central widget cleanup check to not remove None
This commit is contained in:
@ -175,6 +175,7 @@ class BECMainWindow(BECWidget, QMainWindow):
|
||||
|
||||
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):
|
||||
|
Reference in New Issue
Block a user