Remove tab widgets properly when a tab is closed.
We forgot to do that which means we had a memory leak, and sound of tabs continued to play when a tab was closed.
This commit is contained in:
parent
d65fbb0b8c
commit
55755262e1
@ -263,6 +263,7 @@ class TabbedBrowser(TabWidget):
|
|||||||
self.url_stack.append(url)
|
self.url_stack.append(url)
|
||||||
self._tabs.remove(tab)
|
self._tabs.remove(tab)
|
||||||
self.removeTab(idx)
|
self.removeTab(idx)
|
||||||
|
tab.deleteLater()
|
||||||
|
|
||||||
@pyqtSlot('QUrl', bool)
|
@pyqtSlot('QUrl', bool)
|
||||||
def openurl(self, url, newtab):
|
def openurl(self, url, newtab):
|
||||||
|
Loading…
Reference in New Issue
Block a user