Skip to content

Commit c03ca93

Browse files
committed
Merge branch 'master' of https://github.com/cztomczak/cefpython
2 parents 3b5eb70 + 851a587 commit c03ca93

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)