Fix crash when getting signals for closed tabs

Fixes #3498
This commit is contained in:
Florian Bruhin 2018-01-20 18:50:17 +01:00
parent 4b3a237e2a
commit 748de85ba2
2 changed files with 7 additions and 0 deletions

View File

@ -749,6 +749,10 @@ class AbstractTab(QWidget):
@pyqtSlot(bool)
def _on_load_finished(self, ok):
if sip.isdeleted(self._widget):
# https://github.com/qutebrowser/qutebrowser/issues/3498
return
sess_manager = objreg.get('session-manager')
sess_manager.save_autosave()

View File

@ -631,6 +631,9 @@ class WebEngineTab(browsertab.AbstractTab):
@pyqtSlot()
def _restore_zoom(self):
if sip.isdeleted(self._widget):
# https://github.com/qutebrowser/qutebrowser/issues/3498
return
if self._saved_zoom is None:
return
self.zoom.set_factor(self._saved_zoom)