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:
Florian Bruhin 2014-07-31 19:34:30 +02:00
parent d65fbb0b8c
commit 55755262e1

View File

@ -263,6 +263,7 @@ class TabbedBrowser(TabWidget):
self.url_stack.append(url)
self._tabs.remove(tab)
self.removeTab(idx)
tab.deleteLater()
@pyqtSlot('QUrl', bool)
def openurl(self, url, newtab):