parent
95aeb86328
commit
90f472bf59
@ -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):
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user