Skip to content

Commit 851a587

Browse files
authored
Merge pull request cztomczak#409 from Jack-2025/master
Fix crash on exit in PySide example (cztomczak#360)
2 parents f77161a + d6b0bca commit 851a587

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/qt.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ class MainWindow(QMainWindow):
108108
def __init__(self):
109109
# noinspection PyArgumentList
110110
super(MainWindow, self).__init__(None)
111+
# Avoids crash when shutting down CEF (issue #360)
112+
if PYSIDE:
113+
self.setAttribute(Qt.WA_DeleteOnClose, True)
111114
self.cef_widget = None
112115
self.navigation_bar = None
113116
if PYQT4:

0 commit comments

Comments
 (0)