Temporary fix for Qt 5.8 segfaults

See #2261
This commit is contained in:
Florian Bruhin 2017-01-29 22:56:53 +01:00
parent 95aeb86328
commit 90f472bf59
2 changed files with 5 additions and 0 deletions

View File

@ -279,6 +279,7 @@ class TabbedBrowser(tabwidget.TabWidget):
urlutils.invalid_url_error(tab.url(), "saving tab")
tab.shutdown()
self.removeTab(idx)
tab.layout().unwrap()
tab.deleteLater()
def undo(self):

View File

@ -260,3 +260,7 @@ class WrapperLayout(QLayout):
self._widget = widget
container.setFocusProxy(widget)
widget.setParent(container)
def unwrap(self):
self._widget.setParent(None)
self._widget.deleteLater()