Skip to content

Commit

Permalink
Temporary fix for Qt 5.8 segfaults
Browse files Browse the repository at this point in the history
See #2261
  • Loading branch information
The-Compiler committed Jan 29, 2017
1 parent 95aeb86 commit 90f472b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions qutebrowser/mainwindow/tabbedbrowser.py
Expand Up @@ -279,6 +279,7 @@ def _remove_tab(self, tab, *, add_undo=True):
urlutils.invalid_url_error(tab.url(), "saving tab")
tab.shutdown()
self.removeTab(idx)
tab.layout().unwrap()
tab.deleteLater()

def undo(self):
Expand Down
4 changes: 4 additions & 0 deletions qutebrowser/misc/miscwidgets.py
Expand Up @@ -260,3 +260,7 @@ def wrap(self, container, widget):
self._widget = widget
container.setFocusProxy(widget)
widget.setParent(container)

def unwrap(self):
self._widget.setParent(None)
self._widget.deleteLater()

0 comments on commit 90f472b

Please sign in to comment.