Shutdown tabs before removing

This commit is contained in:
Florian Bruhin 2014-06-25 07:45:01 +02:00
parent daee57b37d
commit efd34455b5

View File

@ -240,8 +240,9 @@ class TabbedBrowser(TabWidget):
if not url.isEmpty():
qt_ensure_valid(url)
self.url_stack.append(url)
self.removeTab(idx)
tab.shutdown(callback=partial(self._cb_tab_shutdown, tab))
log.destroy.debug("Removing tab {}/{}".format(idx, tab))
self.removeTab(idx)
elif last_close == 'quit':
self.quit.emit()
elif last_close == 'blank':