Disable renderer process crash workaround on Qt 5.9

This commit is contained in:
Florian Bruhin 2017-05-03 21:24:25 +02:00
parent 2a4af0666b
commit a320aa5ef7

View File

@ -673,11 +673,11 @@ class TabbedBrowser(tabwidget.TabWidget):
else:
raise ValueError("Invalid status {}".format(status))
# WORKAROUND for https://bugreports.qt.io/browse/QTBUG-58698
# FIXME:qtwebengine can we disable this with Qt 5.8.1?
self._remove_tab(tab, crashed=True)
if self.count() == 0:
self.tabopen(QUrl('about:blank'))
if not qtutils.version_check('5.9'):
# WORKAROUND for https://bugreports.qt.io/browse/QTBUG-58698
self._remove_tab(tab, crashed=True)
if self.count() == 0:
self.tabopen(QUrl('about:blank'))
def resizeEvent(self, e):
"""Extend resizeEvent of QWidget to emit a resized signal afterwards.